Skip to content

Commit

Permalink
fix epel install
Browse files Browse the repository at this point in the history
  • Loading branch information
hankthetank27 committed Oct 13, 2023
1 parent b0baaac commit 1d7c55e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .ebextensions/ssl.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ files:
content: |
0 */12 * * * root /usr/bin/certbot -q renew --nginx

packages:
yum:
epel-release: []

container_commands:
10_installcertbot:
command: "wget https://dl.eff.org/certbot-auto;chmod a+x certbot-auto"
20_getcert:
command: "sudo ./certbot-auto certonly --debug --non-interactive --email ${EMAIL} --agree-tos --standalone --domains ${DOMAIN_LINK} --keep-until-expiring --pre-hook \"service nginx stop\" --staging"
30_link:
10_downloadepel:
command: "sudo wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/"
20_installepel:
command: "sudo rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm --force"
30_enableepl:
command: "sudo yum-config-manager --enable epel*"
40_installcertbot:
command: "sudo yum install -y certbot"
50_getcert:
command: "sudo certbot certonly --debug --non-interactive --email ${EMAIL} --agree-tos --standalone --domains ${DOMAIN_LINK} --keep-until-expiring --pre-hook \"sudo service nginx stop\" --post-hook \"sudo service nginx start\""
60_link:
command: "ln -sf /etc/letsencrypt/live/${DOMAIN_LINK} /etc/letsencrypt/live/ebcert"

0 comments on commit 1d7c55e

Please sign in to comment.