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:
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