2021-02-15 13:02:26 -05:00
|
|
|
#!/usr/bin/with-contenv bash
|
2022-11-22 15:55:25 -05:00
|
|
|
# shellcheck shell=bash
|
2021-02-15 13:02:26 -05:00
|
|
|
|
2022-11-22 15:55:25 -05:00
|
|
|
# shellcheck source=/dev/null
|
2021-02-15 13:02:26 -05:00
|
|
|
. /config/.donoteditthisfile.conf
|
|
|
|
|
2022-11-29 10:18:56 -05:00
|
|
|
if [[ ! "${ORIGVALIDATION}" = "dns" ]] && [[ ! "${ORIGVALIDATION}" = "duckdns" ]]; then
|
2022-11-22 15:55:25 -05:00
|
|
|
if pgrep -f "s6-supervise nginx" >/dev/null; then
|
2023-01-21 00:32:43 -05:00
|
|
|
s6-svc -u /run/service/svc-nginx
|
2021-02-15 13:02:26 -05:00
|
|
|
fi
|
|
|
|
else
|
2022-11-22 15:55:25 -05:00
|
|
|
if pgrep -f "nginx:" >/dev/null; then
|
2023-01-21 00:32:43 -05:00
|
|
|
s6-svc -h /run/service/svc-nginx
|
2021-02-15 13:02:26 -05:00
|
|
|
fi
|
|
|
|
fi
|