Docker container providing nginx/letsencrypt support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
439 B

if [ "$NO_NGINX" ]; then
/usr/bin/certbot renew --standalone
/usr/bin/certbot renew --webroot --webroot-path /var/www/html
# Reload nginx
pkill -1 nginx
# Correct permissions if not told otherwise
if [ -z "$LEAVE_PERMISSIONS_AS_IS" ]; then
find /etc/letsencrypt -type d -exec chmod 0755 {} \;
find /etc/letsencrypt -type f -exec chmod 0644 {} \;
echo "Last renew: $(date)" > /tmp/last_renew