]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - ipv6.sh
fix: use double brackets instead of test
[github/bastienwirtz/homer.git] / ipv6.sh
diff --git a/ipv6.sh b/ipv6.sh
index c013ed6e0656cb9f2d4ecbf88bf19f49dff8581d..00b0ddadf3fb613cf5efd6d6942a5b782cf32a75 100755 (executable)
--- a/ipv6.sh
+++ b/ipv6.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
 # Enable IPV6 if needed
-if test -z "$IPV6_DISABLE"; then
+if [[ "${IPV6_DISABLE}" == "1" ]]; then
        echo '$SERVER["socket"] == "[::]:" + env.PORT {  }'
 fi