Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <mailto@danielhansson.nu>2022-05-17 23:20:19 +0300
committerGitHub <noreply@github.com>2022-05-17 23:20:19 +0300
commite3721d49139bcd15c4d3e6e5b5f06af79d7ee01f (patch)
tree8647b25b0abf1e95daee48f67fb76230f81e4d8c
parent19173f1d4774fec398bd4a291c1f52846cc573fe (diff)
automatically restart services
-rw-r--r--nextcloud_install_production.sh4
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