From eb36cb3133c6dce929b622c97d59603054ce2bd6 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:03:38 +0100 Subject: [PATCH] Refactor CLIProxyAPI: remove msg wrapper, remove creds file, update JSON notes --- ct/cliproxyapi.sh | 2 -- install/cliproxyapi-install.sh | 7 ------- json/cliproxyapi.json | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/ct/cliproxyapi.sh b/ct/cliproxyapi.sh index b645f7f51..b23bd31e5 100644 --- a/ct/cliproxyapi.sh +++ b/ct/cliproxyapi.sh @@ -35,9 +35,7 @@ function update_script() { systemctl stop cliproxyapi msg_ok "Stopped CLIProxyAPI" - msg_info "Updating CLIProxyAPI" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cliproxyapi" "router-for-me/CLIProxyAPI" "prebuild" "latest" "/opt/cliproxyapi" "CLIProxyAPI_*_linux_amd64.tar.gz" - msg_ok "Updated CLIProxyAPI" msg_info "Starting CLIProxyAPI" systemctl start cliproxyapi diff --git a/install/cliproxyapi-install.sh b/install/cliproxyapi-install.sh index 793e79fff..0dc277ddd 100644 --- a/install/cliproxyapi-install.sh +++ b/install/cliproxyapi-install.sh @@ -40,13 +40,6 @@ routing: strategy: "round-robin" EOF -{ - echo "CLIProxyAPI Credentials" - echo "=======================" - echo "API Key: ${API_KEY}" - echo "Management Password: ${MANAGEMENT_PASSWORD}" -} >~/cliproxyapi.creds -chmod 600 ~/cliproxyapi.creds msg_ok "Configured CLIProxyAPI" msg_info "Creating Service" diff --git a/json/cliproxyapi.json b/json/cliproxyapi.json index 6912d5e97..bd9370fa3 100644 --- a/json/cliproxyapi.json +++ b/json/cliproxyapi.json @@ -33,7 +33,7 @@ }, "notes": [ { - "text": "Generated credentials (API Key, Management Password) are saved to `/root/cliproxyapi.creds` inside the LXC.", + "text": "Generated credentials (API Key, Management Password) are stored in `/opt/cliproxyapi/config.yaml` inside the LXC.", "type": "info" }, {