mirror of
https://github.com/linuxserver/docker-swag.git
synced 2024-12-20 21:24:31 -05:00
16 lines
407 B
Plaintext
16 lines
407 B
Plaintext
#!/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/svc-nginx
|
|
fi
|
|
else
|
|
if pgrep -f "nginx:" >/dev/null; then
|
|
s6-svc -h /run/service/svc-nginx
|
|
fi
|
|
fi
|