feat: update AIVPN migration script to output connection variables for web panel parsing

This commit is contained in:
infosave2007
2026-04-04 11:02:06 +03:00
parent 488da396a7
commit fc187ba819
+6 -3
View File
@@ -85,9 +85,12 @@ if [ "$STATUS" != "running" ]; then
fi fi
echo "AIVPN installed successfully" echo "AIVPN installed successfully"
echo "Port: $VPN_PORT" # Output variables for the web panel parser
echo "ExternalIP: $EXTERNAL_IP" KEY_B64=$(base64 -w 0 "$CONFIG_DIR/server.key" 2>/dev/null || base64 "$CONFIG_DIR/server.key")
echo "ConfigDir: $CONFIG_DIR"', echo "Variable: connection_key=$KEY_B64"
echo "Variable: server_host=$EXTERNAL_IP"
echo "Variable: server_port=$VPN_PORT"
echo "Variable: config_dir=$CONFIG_DIR"',
'#!/bin/bash '#!/bin/bash
set -euo pipefail set -euo pipefail