We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c670142 commit 33ff2d6Copy full SHA for 33ff2d6
nextcloud_update.sh
@@ -32,6 +32,16 @@ root_check
32
is_process_running apt
33
is_process_running dpkg
34
35
+# Automatically restart services (Ubuntu 22.04)
36
+if ! version 16.04.10 "$DISTRO" 20.04.10
37
+then
38
+ if ! grep -r "{restart} = 'a'" /etc/needrestart/needrestart.conf
39
+ then
40
+ # Restart mode: (l)ist only, (i)nteractive or (a)utomatically.
41
+ sed -i "s|#\$nrconf{restart} = .*|\$nrconf{restart} = 'a';|g" /etc/needrestart/needrestart.conf
42
+ fi
43
+fi
44
+
45
# Check for pending-snapshot
46
if does_snapshot_exist "NcVM-snapshot-pending"
47
then
0 commit comments