Disable Annoying Daemon Restart Dialog
This commit is contained in:
parent
014d5c2391
commit
099a00236a
1 changed files with 6 additions and 6 deletions
|
@ -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(){
|
||||||
|
|
Loading…
Reference in a new issue