mirror of
https://github.com/linuxserver/docker-changedetection.io.git
synced 2026-01-09 07:21:39 +08:00
13 lines
473 B
Plaintext
Executable File
13 lines
473 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
|
exec \
|
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 5000" \
|
|
cd /app/changedetection s6-setuidgid abc python3 /app/changedetection/changedetection.py -d /config
|
|
else
|
|
exec \
|
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 5000" \
|
|
cd /app/changedetection python3 /app/changedetection/changedetection.py -d /config
|
|
fi
|