configure needrestart
This commit is contained in:
parent
b440ac403e
commit
059927c38c
|
@ -32,8 +32,13 @@ fi
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
# modify policy-rc.d so that packages automatically start/restart/stop after install/upgrade/uninstall
|
# have packages automatically start/restart/stop after install/upgrade/uninstall
|
||||||
sed -i "s|exit 101|exit 0|g" /usr/sbin/policy-rc.d
|
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
|
||||||
|
|
||||||
# install pwgen, used to create random passwords
|
# install pwgen, used to create random passwords
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y install pwgen
|
DEBIAN_FRONTEND=noninteractive apt-get -y install pwgen
|
||||||
|
|
Loading…
Reference in New Issue
Block a user