Skip to content

Commit

Permalink
nc-automount: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 3, 2017
1 parent 0b28b96 commit 87b1509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/nextcloudpi-config.d/nc-automount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ EOF
# adjust when mariaDB starts
local DBUNIT=/lib/systemd/system/mariadb.service
grep -q sleep $DBUNIT || sed -i "/^ExecStart=/iExecStartPre=/bin/sleep 10" $DBUNIT

systemctl daemon-reload
}

configure()
Expand Down
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ EOF
# automount remove old fstab lines
sed -i '/\/dev\/USBdrive/d' /etc/fstab
rm -f /etc/udev/rules.d/50-automount.rules /usr/local/etc/blknum
udevadm control --reload-rules

# restart PHP
sleep 3
Expand Down

0 comments on commit 87b1509

Please sign in to comment.