From 099a00236a17889ba1971e8fc8199c5bea00c97f Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Wed, 25 Oct 2023 12:50:03 -0600 Subject: [PATCH] Disable Annoying Daemon Restart Dialog --- ehcp/ehcpforceupdate.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ehcp/ehcpforceupdate.sh b/ehcp/ehcpforceupdate.sh index a3204bd..0794872 100755 --- a/ehcp/ehcpforceupdate.sh +++ b/ehcp/ehcpforceupdate.sh @@ -2217,6 +2217,12 @@ function ModifyPHPIniConfigForFile(){ } 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 aptgetInstall coreutils @@ -2271,12 +2277,6 @@ function installNewPackages(){ # Needed for PolicyD 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(){