mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-09-15 21:12:03 +09:00
14 lines
500 B
Plaintext
Executable File
14 lines
500 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
# Notice: This file will be overwritten when updated by lsio. Add your custom scripts into a new file in this folder.
|
|
|
|
# shellcheck source=/dev/null
|
|
. /config/.donoteditthisfile.conf
|
|
|
|
if [[ ! "${ORIGVALIDATION}" = "dns" ]] && [[ ! "${ORIGVALIDATION}" = "duckdns" ]]; then
|
|
if pgrep -f "nginx:" >/dev/null; then
|
|
echo "**** Stopping Nginx in preparation of cert generation/renewal ****"
|
|
s6-svc -d /run/service/svc-nginx
|
|
fi
|
|
fi
|