Oh, and the user systemd array name isn't used in the for loop.
if [[ ${#USER_ENABLED[@]} -gt 0 ]]; then
for unit in "${>>ENABLED<<[@]}"; do
unit=$(printf "$unit")
systemctl --user enable $unit
done
fi
if [[ ${#USER_DISABLED[@]} -gt 0 ]]; then
for unit in "${>>DISABLED<<[[@]}"; do
unit=$(printf "$unit")
systemctl --user disable $unit
done
fi
Hello,
It comes to my attention that this code snippet in systemd.sh doesn't align to the documentation:
I am not sure which one takes precedence.
Oh, and the user systemd array name isn't used in the for loop.