Disable Annoying Daemon Restart Dialog

This commit is contained in:
earnolmartin 2023-10-25 12:50:03 -06:00
parent 014d5c2391
commit 099a00236a

View file

@ -2217,6 +2217,12 @@ function ModifyPHPIniConfigForFile(){
} }
function installNewPackages(){ function installNewPackages(){
# Keep kernel update notifications from interrupting...
if [ -e "/etc/needrestart/needrestart.conf" ]; then
sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf
sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
fi
# Install required packages that may be missing # Install required packages that may be missing
aptgetInstall coreutils aptgetInstall coreutils
@ -2271,12 +2277,6 @@ function installNewPackages(){
# Needed for PolicyD # Needed for PolicyD
aptgetInstall libdbd-mysql-perl aptgetInstall libdbd-mysql-perl
# Keep kernel update notifications from interrupting...
if [ -e "/etc/needrestart/needrestart.conf" ]; then
sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf
sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
fi
} }
function getRidOfExtraPHPMyAdminAlias(){ function getRidOfExtraPHPMyAdminAlias(){