diff --git a/root/etc/cont-init.d/98-cloudflared-config b/root/etc/cont-init.d/98-cloudflared-config index 571dbb7..bc36274 100644 --- a/root/etc/cont-init.d/98-cloudflared-config +++ b/root/etc/cont-init.d/98-cloudflared-config @@ -44,7 +44,7 @@ cloudflared -v 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_TUNNEL_PASSWORD} -le 32 ]]; then + if [[ ${#CF_TUNNEL_PASSWORD} -lt 32 ]]; then echo "**** Cloudflare tunnel password must be at least 32 characters long, exiting... ****" rm -rf /etc/services.d/cloudflared exit 1 @@ -139,4 +139,4 @@ else rm -rf /etc/services.d/cloudflared fi -echo "**** Cloudflared setup script done, exiting... ****" \ No newline at end of file +echo "**** Cloudflared setup script done, exiting... ****"