fix: typos in systemd module (#40)

* module systemd: fix typos in README.md

* module systemd: fix typos in systemd.sh
This commit is contained in:
Lordus Kordus 2023-09-13 19:11:20 +02:00 committed by GitHub
parent ffb1a5b6be
commit 7699cc919c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -7,14 +7,14 @@ The `systemd` module streamlines the management of systemd units during image bu
```yaml
type: systemd
system:
enable:
enabled:
- example.service
disable:
disabled:
- example.target
user:
enable:
enabled:
- example.timer
disable:
disabled:
- example.service
```

View file

@ -22,13 +22,13 @@ if [[ ${#DISABLED[@]} -gt 0 ]]; then
done
fi
if [[ ${#USER_ENABLED[@]} -gt 0 ]]; then
for unit in "${ENABLED[@]}"; do
for unit in "${USER_ENABLED[@]}"; do
unit=$(printf "$unit")
systemctl --user enable $unit
done
fi
if [[ ${#USER_DISABLED[@]} -gt 0 ]]; then
for unit in "${DISABLED[@]}"; do
for unit in "${USER_DISABLED[@]}"; do
unit=$(printf "$unit")
systemctl --user disable $unit
done