Skip to content

Commit

Permalink
improve dependency of database with automount
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Mar 15, 2018
1 parent 2c1f8b4 commit b3be948
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion etc/nextcloudpi-config.d/nc-automount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 4 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3be948

Please sign in to comment.