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
parent2c1f8b4f167c467c4044ecf93bd4d592b4787cb2 (diff)
improve dependency of database with automountv0.47.2
-rw-r--r--changelog.md6
-rw-r--r--etc/nextcloudpi-config.d/nc-automount.sh3
-rwxr-xr-xupdate.sh4
3 files changed, 10 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md
index 72911ec6..c1c082af 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,7 +1,9 @@
-[v0.47.1](https://github.com/nextcloud/nextcloudpi/commit/188da78) (2018-03-10) update: make sure redis log exists
+[v0.47.2](https://github.com/nextcloud/nextcloudpi/commit/3766959) (2018-03-15) improve dependency of database with automount
-[v0.47.0](https://github.com/nextcloud/nextcloudpi/commit/8c7a4f3) (2018-03-05) added nc-zram
+[v0.47.1 ](https://github.com/nextcloud/nextcloudpi/commit/9f6c479) (2018-03-10) update: make sure redis log exists
+
+[v0.47.0 ](https://github.com/nextcloud/nextcloudpi/commit/8c7a4f3) (2018-03-05) added nc-zram
[v0.46.40](https://github.com/nextcloud/nextcloudpi/commit/0d9d2e4) (2018-03-04) nc-backup-auto: change to using cron
diff --git a/etc/nextcloudpi-config.d/nc-automount.sh b/etc/nextcloudpi-config.d/nc-automount.sh
index 3841e0ab..8577b7d8 100644
--- a/etc/nextcloudpi-config.d/nc-automount.sh
+++ b/etc/nextcloudpi-config.d/nc-automount.sh
@@ -98,7 +98,8 @@ EOF
chmod +x /usr/local/etc/nc-automount-links-mon
# delay init because of automount
- sed -i "/^ExecStart=/iExecStartPre=/bin/sleep 10" /lib/systemd/system/mariadb.service
+ sed -i "/^ExecStart=/iExecStartPre=/bin/sleep 20" /lib/systemd/system/mariadb.service
+ sed -i 's|^Restart=.*|Restart=on-failure|' /lib/systemd/system/mariadb.service
}
configure()
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