remove policy-rc.d and needrestart configs, moving them to base-stack
This commit is contained in:
parent
58221f72c5
commit
c55d506d9c
|
@ -32,14 +32,6 @@ fi
|
|||
|
||||
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
|
||||
if [[ ! -d /usr/local/lib/systemd/system ]]; then
|
||||
mkdir -p /usr/local/lib/systemd/system
|
||||
|
|
Loading…
Reference in New Issue
Block a user