1f8ac5b
## NOTE ##
1f8ac5b
# If a hook is set here then it will be used for all
1f8ac5b
# certificates and will override any per certificate
1f8ac5b
# hook configuration in place.
1f8ac5b
6800d9e
# Command to be run in a shell before obtaining any
6800d9e
# certificates. Intended primarily for renewal, where it
6800d9e
# can be used to temporarily shut down a webserver that
6800d9e
# might conflict with the standalone plugin. This will
6800d9e
# only be called if a certificate is actually to be
6800d9e
# obtained/renewed. When renewing several certificates
6800d9e
# that have identical pre-hooks, only the first will be
ef6c3a4
# executed.
0ed0a5b
#
0ed0a5b
# An example to stop the MTA before updating certs would be
1f8ac5b
# PRE_HOOK="--pre-hook 'systemctl stop postfix'"
1f8ac5b
PRE_HOOK=""
6800d9e
6800d9e
# Command to be run in a shell after attempting to
6800d9e
# obtain/renew certificates. Can be used to deploy
6800d9e
# renewed certificates, or to restart any servers that
6800d9e
# were stopped by --pre-hook. This is only run if an
6800d9e
# attempt was made to obtain/renew a certificate. If
6800d9e
# multiple renewed certificates have identical post-
ef6c3a4
# hooks, only one will be run.
6800d9e
#
6800d9e
# An example to restart httpd would be:
1f8ac5b
# POST_HOOK="--post-hook 'systemctl restart httpd'"
1f8ac5b
POST_HOOK=""
6800d9e
6800d9e
# Command to be run in a shell once for each
6800d9e
# successfully renewed certificate. For this command,
6800d9e
# the shell variable $RENEWED_LINEAGE will point to the
6800d9e
# config live subdirectory containing the new certs and
6800d9e
# keys; the shell variable $RENEWED_DOMAINS will contain
6800d9e
# a space-delimited list of renewed cert domains
0ed0a5b
#
0ed0a5b
# An example to run a script to alert each cert would be:
897f42f
# DEPLOY_HOOK="--deploy-hook /usr/local/bin/cert-notifier.sh"
897f42f
DEPLOY_HOOK=""
6800d9e
6800d9e
# Any other misc arguments for the renewal
6800d9e
# See certbot -h renew for full list
6800d9e
#
6800d9e
# An example to force renewal for certificates not due yet
6800d9e
# CERTBOT_ARGS="--force-renewal"
6800d9e
CERTBOT_ARGS=""
6800d9e