add auto edit in setup.sh, add enable.sh

This commit is contained in:
sup39 2022-06-18 02:22:10 +09:00
parent 3884cbe0e7
commit 385ac0f68b
2 changed files with 10 additions and 0 deletions

3
enable.sh Normal file
View 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

View file

@ -14,3 +14,10 @@ Next step:
(2) $ sudo systemctl enable certrenew.service certrenew.timer certrenew.path (2) $ sudo systemctl enable certrenew.service certrenew.timer certrenew.path
(3) $ sudo systemctl start certrenew.service certrenew.timer certrenew.target certrenew.path (3) $ sudo systemctl start certrenew.service certrenew.timer certrenew.target certrenew.path
EOF 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"