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

16 lines
371 B
Plaintext
Raw Normal View History

#!/usr/bin/with-contenv bash
2022-11-22 15:55:25 -05:00
# shellcheck shell=bash
2022-11-22 15:55:25 -05:00
# shellcheck source=/dev/null
. /config/.donoteditthisfile.conf
2022-11-22 15:55:25 -05:00
if [ ! "${ORIGVALIDATION}" = "dns" ] && [ ! "${ORIGVALIDATION}" = "duckdns" ]; then
if pgrep -f "s6-supervise nginx" >/dev/null; then
s6-svc -u /run/service/nginx
fi
else
2022-11-22 15:55:25 -05:00
if pgrep -f "nginx:" >/dev/null; then
s6-svc -h /run/service/nginx
fi
fi