feat: update AIVPN migration script to output connection variables for web panel parsing
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user