bunkerweb/scripts/certbot-renew.sh
2021-03-17 17:55:56 +01:00

14 lines
277 B
Bash

#!/bin/sh
# load some functions
. /opt/entrypoint/utils.sh
# ask new certificates if needed
certbot renew --deploy-hook /opt/scripts/certbot-renew-hook.sh
if [ "$?" -eq 0 ] ; then
job_log "[CERTBOT] renew operation done"
else
job_log "[CERTBOT] renew operation failed"
fi