mirror of
https://github.com/andrey271192/WARP-Web-UI.git
synced 2026-09-22 12:11:59 +00:00
fix: apply SOCKS port when warp-cli already present
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -94,6 +94,11 @@ sed \
|
|||||||
-e "s|@ENV_FILE@|${ENV_FILE}|g" \
|
-e "s|@ENV_FILE@|${ENV_FILE}|g" \
|
||||||
"${REPO_DIR}/systemd/warp-webui.service" > "${UNIT_DST}"
|
"${REPO_DIR}/systemd/warp-webui.service" > "${UNIT_DST}"
|
||||||
|
|
||||||
|
if command -v warp-cli >/dev/null 2>&1; then
|
||||||
|
warp-cli --accept-tos mode proxy 2>/dev/null || true
|
||||||
|
warp-cli --accept-tos proxy port "${WARP_PROXY_PORT}" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable "${SERVICE_NAME}.service"
|
systemctl enable "${SERVICE_NAME}.service"
|
||||||
systemctl restart "${SERVICE_NAME}.service"
|
systemctl restart "${SERVICE_NAME}.service"
|
||||||
|
|||||||
Reference in New Issue
Block a user