remove policy-rc.d and needrestart configs, moving them to base-stack

This commit is contained in:
Matthew Saunders Brown 2023-10-09 15:10:35 -07:00
parent 58221f72c5
commit c55d506d9c

View File

@ -32,14 +32,6 @@ fi
apt-get update apt-get update
# have packages automatically start/restart/stop after install/upgrade/uninstall
if [[ -f /usr/sbin/policy-rc.d ]]; then
sed -i "s|exit 101|exit 0|g" /usr/sbin/policy-rc.d
fi
if [[ -f /etc/needrestart/needrestart.conf ]]; then
sed -i "s|^#\$nrconf{restart} = 'i';|\$nrconf{restart} = 'a';|g" /etc/needrestart/needrestart.conf
fi
# create local systemd dir # create local systemd dir
if [[ ! -d /usr/local/lib/systemd/system ]]; then if [[ ! -d /usr/local/lib/systemd/system ]]; then
mkdir -p /usr/local/lib/systemd/system mkdir -p /usr/local/lib/systemd/system