Skip to content

Commit

Permalink
Merge pull request #558 from ashura82/patch-1
Browse files Browse the repository at this point in the history
Update rtletsencrypt
  • Loading branch information
arakasi72 committed Apr 16, 2021
2 parents f9615fe + e13bc2b commit 0d4ae9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/rtletsencrypt
Expand Up @@ -70,7 +70,7 @@ if [ $osname = "Debian" ]; then snap install core >> $logfile 2>&1; snap refresh
# Installing Certbot
if [ $(snap list | grep -c "certbot") = 0 ]; then
echo "Installing certbot"
snap -y install --classic certbot >> $logfile 2>&1
snap install --classic certbot >> $logfile 2>&1
else
echo "certbot already installed"
fi
Expand All @@ -80,6 +80,8 @@ if [ $(snap list | grep -c "certbot") = 0 ]; then
exit 1
fi

#Prepare certbot command
ln -s /snap/bin/certbot /usr/bin/certbot

#Generating Certificates
certbot -q --nginx --register-unsafely-without-email --agree-tos certonly -d $serverdn >> $logfile 2>&1
Expand Down

0 comments on commit 0d4ae9b

Please sign in to comment.