fix(systemd): Force-enable services to override existing symlinks

This commit is contained in:
zelikos 2023-09-17 14:43:33 -04:00
parent 5aca8898bf
commit 58d769985a
No known key found for this signature in database
GPG key ID: AA0CB476ECFA09E7

View file

@ -12,7 +12,7 @@ get_yaml_array USER_DISABLED '.user.disabled[]' "$1"
if [[ ${#ENABLED[@]} -gt 0 ]]; then
for unit in "${ENABLED[@]}"; do
unit=$(printf "$unit")
systemctl enable $unit
systemctl -f enable $unit
done
fi
if [[ ${#DISABLED[@]} -gt 0 ]]; then
@ -24,7 +24,7 @@ fi
if [[ ${#USER_ENABLED[@]} -gt 0 ]]; then
for unit in "${USER_ENABLED[@]}"; do
unit=$(printf "$unit")
systemctl --global enable $unit
systemctl --global -f enable $unit
done
fi
if [[ ${#USER_DISABLED[@]} -gt 0 ]]; then