From e3721d49139bcd15c4d3e6e5b5f06af79d7ee01f Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 17 May 2022 22:20:19 +0200 Subject: [PATCH] automatically restart services --- nextcloud_install_production.sh | 4 ++++ 1 file changed, 4 insertions(+) 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