Fix sed command syntax for UpstreamProxyUrl

This commit is contained in:
Swarup Sengupta
2026-02-10 11:03:58 +05:30
committed by GitHub
parent 95dee60a18
commit 153ec0e51d
+2 -2
View File
@@ -20,7 +20,7 @@ if [ ! -f /config/psiphon.config ]; then
sed -i -E 's/"EgressRegion"[[:space:]]*:[[:space:]]*"[^"]*"/"EgressRegion": "'${EGRESS_REGION}'"/' /config/psiphon.config
fi
if [ -n "${UPSTREAM_PROXY}" ]; then
sed -i -E 's/"UpstreamProxyUrl"[[:space:]]*:[[:space:]]*"[^"]*"/"UpstreamProxyUrl": "'"${UPSTREAM_PROXY}"'"/' /config/psiphon.config
sed -i -E 's|"UpstreamProxyUrl"[[:space:]]*:[[:space:]]*"[^"]*"|"UpstreamProxyUrl": "'${UPSTREAM_PROXY}'"|' /config/psiphon.config
fi
fi
@@ -46,4 +46,4 @@ chown -R psiphon:psiphon /config
su -s /bin/sh psiphon <<EOF
psiphon -config /config/psiphon.config
EOF
EOF