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
+1 -1
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