testing: Correctly dis-/enable services with systemd
This commit is contained in:
@@ -113,7 +113,12 @@ execute_chroot "apt-get -y upgrade"
|
||||
for service in $SERVICES
|
||||
do
|
||||
log_action "Disabling service $service"
|
||||
execute_chroot "update-rc.d -f $service remove"
|
||||
if [ "$BASEIMGSUITE" == "wheezy" ]
|
||||
then
|
||||
execute_chroot "update-rc.d -f $service remove"
|
||||
else
|
||||
execute_chroot "systemctl disable $service"
|
||||
fi
|
||||
done
|
||||
|
||||
log_action "Disabling root password"
|
||||
|
||||
Reference in New Issue
Block a user