Skip to content

Commit

Permalink
fix: discovered a post-hook error '/bin/sh: nginx: not found' and mod…
Browse files Browse the repository at this point in the history
…ified the renew command to use the full path to nginx in the nginx container
  • Loading branch information
hsm2k3 committed Dec 13, 2024
1 parent 87204c7 commit 51b0b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ services:
- -c
- |
touch /var/log/letsencrypt/renewal.log
echo "0 */12 * * * certbot renew --webroot -w /var/www/certbot --quiet --post-hook 'docker exec -i nginx nginx -s reload' >> /var/log/letsencrypt/renewal.log 2>&1" |
echo "0 */12 * * * certbot renew --webroot -w /var/www/certbot --quiet --post-hook 'docker exec -i nginx /usr/sbin/nginx -s reload'" |
crontab - && crond -f
volumes:
- ./certbot/conf:/etc/letsencrypt
Expand Down

0 comments on commit 51b0b38

Please sign in to comment.