docker-swag/root/defaults/etc/letsencrypt/renewal-hooks/pre/10-nginx
2023-01-20 23:32:43 -06:00

12 lines
288 B
Plaintext

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# shellcheck source=/dev/null
. /config/.donoteditthisfile.conf
if [[ ! "${ORIGVALIDATION}" = "dns" ]] && [[ ! "${ORIGVALIDATION}" = "duckdns" ]]; then
if pgrep -f "nginx:" >/dev/null; then
s6-svc -d /run/service/svc-nginx
fi
fi