diff options
author | Daniel Hansson <mailto@danielhansson.nu> | 2022-05-17 23:20:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 23:20:19 +0300 |
commit | e3721d49139bcd15c4d3e6e5b5f06af79d7ee01f (patch) | |
tree | 8647b25b0abf1e95daee48f67fb76230f81e4d8c | |
parent | 19173f1d4774fec398bd4a291c1f52846cc573fe (diff) |
automatically restart services
-rw-r--r-- | nextcloud_install_production.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index e64691b6..1b1c4d28 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -59,6 +59,10 @@ then exit 1 fi +# Automatically restart services +# Restart mode: (l)ist only, (i)nteractive or (a)utomatically. +sed -i "s|#\$nrconf{restart} = .*|\$nrconf{restart} = 'a'|g" /etc/needrestart/needrestart.conf + # Install needed dependenices install_if_not lshw install_if_not net-tools |