testing: Correctly dis-/enable services with systemd

This commit is contained in:
Tobias Brunner
2016-06-16 14:01:47 +02:00
parent f565f954a7
commit 654343d942
2 changed files with 16 additions and 4 deletions
+6 -1
View File
@@ -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"