mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-21 10:34:14 -04:00
Merge pull request #317 from tuxpeople/patch-1
Using `lt` instead of `le to check length of tunnel password
This commit is contained in:
@@ -44,7 +44,7 @@ cloudflared -v
|
|||||||
|
|
||||||
echo "**** Checking for cloudflare tunnel parameters... ****"
|
echo "**** Checking for cloudflare tunnel parameters... ****"
|
||||||
if [[ ${#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 ]]; then
|
if [[ ${#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 ]]; then
|
||||||
if [[ ${#CF_TUNNEL_PASSWORD} -le 32 ]]; then
|
if [[ ${#CF_TUNNEL_PASSWORD} -lt 32 ]]; then
|
||||||
echo "**** Cloudflare tunnel password must be at least 32 characters long, exiting... ****"
|
echo "**** Cloudflare tunnel password must be at least 32 characters long, exiting... ****"
|
||||||
rm -rf /etc/services.d/cloudflared
|
rm -rf /etc/services.d/cloudflared
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user