docker-swag/root/defaults/etc/letsencrypt/renewal-hooks/pre/10-nginx

12 lines
300 B
Plaintext
Raw Normal View History

#!/usr/bin/with-contenv bash
2022-11-22 20:55:25 +00:00
# shellcheck shell=bash
2022-11-22 20:55:25 +00:00
# shellcheck source=/dev/null
. /config/.donoteditthisfile.conf
2022-11-29 15:18:56 +00:00
if [[ ! "${ORIGVALIDATION}" = "dns" ]] && [[ ! "${ORIGVALIDATION}" = "duckdns" ]]; then
2023-01-21 14:13:33 +00:00
if pgrep -f "nginx:" >/dev/null; then
s6-svc -d /run/service/svc-nginx
fi
fi