automatically restart services

This commit is contained in:
Daniel Hansson 2022-05-17 22:20:19 +02:00 committed by GitHub
parent 19173f1d47
commit e3721d4913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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