Things in if should be in quotations

This commit is contained in:
Minecon724 2025-04-12 12:20:14 +02:00
commit b6718b3f16
Signed by: Minecon724
GPG key ID: A02E6E67AB961189

View file

@ -14,7 +14,7 @@ PDOMAIN=$DOMAIN
envsubst '$PDOMAIN,$UPST' < nginx/conf.d/a-vars.conf.tmpl > nginx/conf.d/a-vars.conf
if [ -n $IPV6_SUBNET ]; then
if [ -n "$IPV6_SUBNET" ]; then
echo "Rotating IP..."
python3 smart-ipv6-rotator/smart-ipv6-rotator.py run --ipv6range=$IPV6_SUBNET
if [ $? -ne 0 ]; then