Fix bug.
This commit is contained in:
parent
b7eec97b95
commit
4c1f6be6fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue