Skip to content

Commit e3721d4

Browse files
authored
automatically restart services
1 parent 19173f1 commit e3721d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nextcloud_install_production.sh

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ then
5959
exit 1
6060
fi
6161

62+
# Automatically restart services
63+
# Restart mode: (l)ist only, (i)nteractive or (a)utomatically.
64+
sed -i "s|#\$nrconf{restart} = .*|\$nrconf{restart} = 'a'|g" /etc/needrestart/needrestart.conf
65+
6266
# Install needed dependenices
6367
install_if_not lshw
6468
install_if_not net-tools

0 commit comments

Comments
 (0)