smst-wp-site/swag/etc/letsencrypt/renewal-hooks/pre/10-nginx
2023-05-23 21:43:13 -04:00

11 lines
300 B
Text
Executable file

#!/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