You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/all_in_one.sh
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,12 @@ fi
32
32
33
33
# It otherwise might be that the blue window blocks everything and user needs to cancel it
34
34
echo"~~ Setting needrestart to auto-restart services (at /etc/needrestart/needrestart.conf) ~~"
35
-
sudo sed -i 's/#\$nrconf{restart} = .*/$nrconf{restart} = "a";/' /etc/needrestart/needrestart.conf ||true
35
+
sudo sed -i -E 's|^[# ]*\$nrconf\{restart\}\s*=.*|\$nrconf{restart} = "a";|' /etc/needrestart/needrestart.conf ||echo"> Could not set needrestart to auto-restart services, but continuing ..."
36
+
export DEBIAN_FRONTEND=noninteractive
37
+
export NEEDRESTART_MODE=a
38
+
39
+
echo"~~ Disabling needrestart kernel hints ~~"
40
+
sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf ||echo"> Could not disable needrestart kernel hints, but continuing ..."
36
41
37
42
echo"~~ Updating system to latest version, depending on your system age, this may take some time ... ~~"
0 commit comments