testing: Correctly dis-/enable services with systemd
[strongswan.git] / testing / scripts / build-baseimage
index 3ad836b..2d923d5 100755 (executable)
@@ -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"