add auto edit in setup.sh, add enable.sh
This commit is contained in:
parent
3884cbe0e7
commit
385ac0f68b
2 changed files with 10 additions and 0 deletions
3
enable.sh
Normal file
3
enable.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
sudo systemctl enable certrenew.service certrenew.timer certrenew.path
|
||||
sudo systemctl start certrenew.service certrenew.timer certrenew.target certrenew.path
|
7
setup.sh
7
setup.sh
|
@ -14,3 +14,10 @@ Next step:
|
|||
(2) $ sudo systemctl enable certrenew.service certrenew.timer certrenew.path
|
||||
(3) $ sudo systemctl start certrenew.service certrenew.timer certrenew.target certrenew.path
|
||||
EOF
|
||||
|
||||
if [ -z "$EDITOR" ]; then
|
||||
for EDITOR in vim vi nano ""; do
|
||||
if command -v "$EDITOR" &>/dev/null; then break; fi
|
||||
done
|
||||
fi
|
||||
[ -z "$EDITOR" ] || "$EDITOR" "$dst/certrenew.service"
|
||||
|
|
Loading…
Reference in a new issue