Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-03-15 18:01:06 +0300
committernachoparker <nacho@ownyourbits.com>2018-03-15 18:06:04 +0300
commitb3be94805031b7ca23e54de78ba4543d9ecfd97e (patch)
treeca7b8ce546df905f47af5bbac6b291d47bb72050 /update.sh
parent2c1f8b4f167c467c4044ecf93bd4d592b4787cb2 (diff)
improve dependency of database with automountv0.47.2
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index fd40bb4b..3b1c4ab3 100755
--- a/update.sh
+++ b/update.sh
@@ -261,6 +261,10 @@ EOF
mkdir -p /var/log/redis
chown redis /var/log/redis
+ # improve dependency of database with automount
+ sed -i 's|^ExecStartPre=/bin/sleep .*|ExecStartPre=/bin/sleep 20|' /lib/systemd/system/mariadb.service
+ sed -i 's|^Restart=.*|Restart=on-failure|' /lib/systemd/system/mariadb.service
+
} # end - only live updates
exit 0