mirror of
https://github.com/linuxserver/docker-swag.git
synced 2025-07-30 09:58:55 -04:00
15 lines
375 B
Text
15 lines
375 B
Text
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
# shellcheck source=/dev/null
|
|
. /config/.donoteditthisfile.conf
|
|
|
|
if [[ ! "${ORIGVALIDATION}" = "dns" ]] && [[ ! "${ORIGVALIDATION}" = "duckdns" ]]; then
|
|
if pgrep -f "s6-supervise nginx" >/dev/null; then
|
|
s6-svc -u /run/service/nginx
|
|
fi
|
|
else
|
|
if pgrep -f "nginx:" >/dev/null; then
|
|
s6-svc -h /run/service/nginx
|
|
fi
|
|
fi
|