mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 18:03:01 -04:00
11 lines
580 B
Plaintext
Executable File
11 lines
580 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
if [[ -n "${CF_REMOTE_MANAGE_TOKEN}" ]]; then
|
|
exec s6-setuidgid abc cloudflared tunnel --no-autoupdate run --token ${CF_REMOTE_MANAGE_TOKEN}
|
|
elif [[ ${#CF_ZONE_ID} -gt 0 ]] && [[ ${#CF_ACCOUNT_ID} -gt 0 ]] && [[ ${#CF_API_TOKEN} -gt 0 ]] && [[ ${#CF_TUNNEL_NAME} -gt 0 ]] && [[ ${#CF_TUNNEL_CONFIG} -gt 0 ]] && [[ ${#CF_TUNNEL_PASSWORD} -gt 31 ]]; then
|
|
exec s6-setuidgid abc cloudflared tunnel --no-autoupdate --config /etc/cloudflared/config.yml run
|
|
else
|
|
echo "**** Issues with cloudflared settings, sleeping ****"
|
|
sleep infinity
|
|
fi
|