Merge pull request #42 from zelikos/systemd-disable-first
fix(systemd): Force-enable services, use --global for user services
This commit is contained in:
commit
a40bcab274
1 changed files with 3 additions and 3 deletions
|
|
@ -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,12 +24,12 @@ fi
|
|||
if [[ ${#USER_ENABLED[@]} -gt 0 ]]; then
|
||||
for unit in "${USER_ENABLED[@]}"; do
|
||||
unit=$(printf "$unit")
|
||||
systemctl --user enable $unit
|
||||
systemctl --global -f enable $unit
|
||||
done
|
||||
fi
|
||||
if [[ ${#USER_DISABLED[@]} -gt 0 ]]; then
|
||||
for unit in "${USER_DISABLED[@]}"; do
|
||||
unit=$(printf "$unit")
|
||||
systemctl --user disable $unit
|
||||
systemctl --global disable $unit
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue