Skip to content

Commit

Permalink
fix some bugs essl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
erfjab authored Apr 20, 2024
1 parent 3bdaa0e commit 48bbf8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions essl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ else
while true; do
case $option in
1)
sudo apt install snapd -y || { echo "Error installing snapd"; exit 1; }
sudo apt install snapd || { echo "Error installing snapd"; exit 1; }

sudo apt remove certbot -y || { echo "Error removing old certbot"; exit 1; }
sudo apt remove certbot || { echo "Error removing old certbot"; exit 1; }

sudo snap install --classic certbot -y || { echo "Error installing certbot via snap"; exit 1; }
sudo snap install --classic certbot || { echo "Error installing certbot via snap"; exit 1; }

sudo certbot certonly --standalone -d "$domain" -y || { echo "Error getting SSL certificate"; exit 1; }
sudo certbot certonly --standalone -d "$domain" || { echo "Error getting SSL certificate"; exit 1; }

sudo mkdir -p "$address"
sudo mv /etc/letsencrypt/live/"$domain"/fullchain.pem "$address/fullchain.pem" || { echo "Error copying certificate files"; exit 1; }
Expand Down

0 comments on commit 48bbf8e

Please sign in to comment.