Update awg-manager.sh

This commit is contained in:
Bkeenke 2024-05-02 00:03:34 +03:00 committed by GitHub
parent 6825f6db33
commit c9844d61ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,6 +92,7 @@ function add_user_to_server {
fi
local USER_PUB_KEY=$(cat "keys/${USER}/public.key")
local USER_PSK_KEY=$(cat "keys/$USER/psk.key")
local USER_IP=$(grep -i Address "keys/${USER}/${USER}.conf" | sed 's/Address\s*=\s*//i; s/\/.*//')
if grep "# BEGIN ${USER}$" "$SERVER_NAME.conf" >/dev/null ; then