From 224a5a99975d1fccec9d9c169e8da07267c271f7 Mon Sep 17 00:00:00 2001 From: Bkeenke <128972800+bkeenke@users.noreply.github.com> Date: Thu, 6 Feb 2025 17:25:58 +0300 Subject: [PATCH] Update shm_actions_script.sh --- shm_actions_script.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/shm_actions_script.sh b/shm_actions_script.sh index c45ad78..55baa8e 100755 --- a/shm_actions_script.sh +++ b/shm_actions_script.sh @@ -17,10 +17,6 @@ case $EVENT in sudo bash -c "$(curl -sL https://raw.githubusercontent.com/bkeenke/awg-manager/master/init.sh)" @ install >> /dev/null echo SERVER_HOST="{{ server.settings.host_name }}" - SERVER_INTERFACE="{{ server.settings.interface }}" - if [[ -z "$SERVER_INTERFACE" ]]; then - SERVER_INTERFACE=$(ip route | awk '/default/ {print $5; exit}') - fi if [ -z $SERVER_HOST ]; then SERVER_HOST="{{ server.settings.host }}" fi @@ -36,11 +32,7 @@ case $EVENT in echo "Init server" chmod 700 $AWG_MANAGER - if [ $SERVER_INTERFACE ]; then - $AWG_MANAGER -i -s $SERVER_HOST -I $SERVER_INTERFACE - else - $AWG_MANAGER -i -s $SERVER_HOST - fi + $AWG_MANAGER -i -s $SERVER_HOST ;; CREATE) echo "Create new user"