mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-31 06:24:18 -04:00
Refactor CLIProxyAPI: remove msg wrapper, remove creds file, update JSON notes
This commit is contained in:
@@ -35,9 +35,7 @@ function update_script() {
|
|||||||
systemctl stop cliproxyapi
|
systemctl stop cliproxyapi
|
||||||
msg_ok "Stopped 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"
|
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"
|
msg_info "Starting CLIProxyAPI"
|
||||||
systemctl start cliproxyapi
|
systemctl start cliproxyapi
|
||||||
|
|||||||
@@ -40,13 +40,6 @@ routing:
|
|||||||
strategy: "round-robin"
|
strategy: "round-robin"
|
||||||
EOF
|
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_ok "Configured CLIProxyAPI"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
"notes": [
|
"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"
|
"type": "info"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user