fix systemd service autoconfig

This commit is contained in:
udeved 2014-12-22 23:20:50 +01:00
parent 344f78c577
commit 4010af077e

View file

@ -58,11 +58,10 @@ configure_services_live(){
else else
msg2 "Congiguring SystemD ...." msg2 "Congiguring SystemD ...."
for svc in ${start_systemd_live[@]}; do for svc in ${start_systemd_live[@]}; do
msg2 "Setting $svc ..." # if [[ -f $1/usr/lib/systemd/system/$svc ]];then
if [[ -f $1/usr/lib/systemd/system/$svc ]];then
msg2 "Setting $svc ..." msg2 "Setting $svc ..."
chroot-run $1 systemctl enable $svc chroot-run $1 systemctl enable $svc
fi # fi
done done
fi fi
} }
@ -80,11 +79,10 @@ configure_services(){
else else
msg2 "Congiguring SystemD ...." msg2 "Congiguring SystemD ...."
for svc in ${start_systemd[@]}; do for svc in ${start_systemd[@]}; do
msg2 "Setting $svc ..." # if [[ -f $1/usr/lib/systemd/system/$svc ]];then
if [[ -f $1/usr/lib/systemd/system/$svc ]];then
msg2 "Setting $svc ..." msg2 "Setting $svc ..."
chroot-run $1 systemctl enable $svc chroot-run $1 systemctl enable $svc
fi # fi
done done
fi fi
} }