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:
parent
ffb1a5b6be
commit
7699cc919c
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue