Skip to content

Commit

Permalink
Fix: certbot file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
erfjab committed Sep 10, 2024
1 parent 47926ab commit dc2b4e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions essl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ get_install_certificate_certbot() {
local cert_dir="$destination"
mkdir -p "$cert_dir" || error "Failed to create certificate directory"

cp /etc/letsencrypt/live/$main_domain/privkey.pem "$cert_dir/privkey.pem"
cp /etc/letsencrypt/live/$main_domain/fullchain.pem "$cert_dir/fullchain.pem"
cat /etc/letsencrypt/live/$main_domain/privkey.pem > "$cert_dir/privkey.pem"
cat /etc/letsencrypt/live/$main_domain/fullchain.pem > "$cert_dir/fullchain.pem"

success "SSL certificate obtained and installed using certbot for domains: ${domains[*]}"
return 0
Expand Down Expand Up @@ -180,7 +180,7 @@ main() {
exit 0
;;
--version|-v)
print "currect essl version: v3.0.1"
print "currect essl version: v3.0.2"
exit 0
;;esac

Expand Down

0 comments on commit dc2b4e5

Please sign in to comment.