This commit is contained in:
BoHung Chiu 2022-09-24 11:31:26 +08:00
parent b7eec97b95
commit 4c1f6be6fc
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ if [ -z $certbot_path ]; then
sudo -p 'sudo password:' rm -f /usr/bin/certbot
sudo -p 'sudo password:' ln -s /opt/certbot/bin/certbot /usr/bin/certbot
sudo -p 'sudo password:' certbot register --email bohung@rulingcom.com --agree-tos -n
sudo -p 'sudo password:' certbot --nginx -n 2>/dev/null || true
echo "Finish install certbot!"
certbot_path="/usr/bin/certbot"
else
@ -73,6 +74,7 @@ if [ -z $certbot_path ]; then
sudo -p 'sudo password:' snap install --classic certbot
sudo -p 'sudo password:' ln -s /snap/bin/certbot /usr/bin/certbot
sudo -p 'sudo password:' certbot register --email bohung@rulingcom.com --agree-tos -n
sudo -p 'sudo password:' certbot --nginx -n 2>/dev/null || true
echo "Finish install certbot!"
certbot_path="/usr/bin/certbot"
else