diff --git a/run.sh b/run.sh index eb02de68..48342894 100755 --- a/run.sh +++ b/run.sh @@ -311,7 +311,7 @@ case $VPN_IKEV2_ONLY in ;; esac -if [ "$disable_ipsec_l2tp" = "yes" ] && [ "$disable_ipsec_xauth" = "yes" ]; then +if [ "$disable_ipsec_l2tp" = yes ] && [ "$disable_ipsec_xauth" = yes ]; then cat <<'EOF' Note: Running in IKEv2-only mode via env file option. @@ -324,12 +324,12 @@ WARNING: /etc/ipsec.d not mounted. IKEv2 setup requires a Docker volume mounted at /etc/ipsec.d. EOF fi -elif [ "$disable_ipsec_l2tp" = "yes" ]; then +elif [ "$disable_ipsec_l2tp" = yes ]; then cat <<'EOF' Note: IPsec/L2TP mode is disabled via env file option. EOF -elif [ "$disable_ipsec_xauth" = "yes" ]; then +elif [ "$disable_ipsec_xauth" = yes ]; then cat <<'EOF' Note: IPsec/XAuth ("Cisco IPsec") mode is disabled via env file option. @@ -365,7 +365,7 @@ conn shared EOF -if [ "$disable_ipsec_l2tp" != "yes" ]; then +if [ "$disable_ipsec_l2tp" != yes ]; then cat >> /etc/ipsec.conf <<'EOF' conn l2tp-psk auto=add @@ -376,7 +376,7 @@ conn l2tp-psk EOF fi -if [ "$disable_ipsec_xauth" != "yes" ]; then +if [ "$disable_ipsec_xauth" != yes ]; then cat >> /etc/ipsec.conf <