From 8006d6eb1ed2d8b86d3e89394c29ecf3a1534281 Mon Sep 17 00:00:00 2001 From: Slava-Shchipunov Date: Sat, 26 Oct 2024 03:22:09 +0700 Subject: [PATCH] fix: add timeout --- amneziawg-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amneziawg-install.sh b/amneziawg-install.sh index ef68675..f369854 100644 --- a/amneziawg-install.sh +++ b/amneziawg-install.sh @@ -165,6 +165,8 @@ configure_amneziawg_interface() { uci set network.@${CONFIG_NAME}[0].endpoint_port=$AWG_ENDPOINT_PORT_INT uci commit network + sleep 5 + if ! uci show firewall | grep -q "@zone.*name='${ZONE_NAME}'"; then printf "\033[32;1mZone Create\033[0m\n" uci add firewall zone @@ -197,7 +199,7 @@ check_repo install_awg_packages -printf "Do you want to configure the amneziawg interface? (y/n): " +printf "\033[32;1mDo you want to configure the amneziawg interface? (y/n): \033[0m\n" read IS_SHOULD_CONFIGURE_AWG_INTERFACE if [ "$IS_SHOULD_CONFIGURE_AWG_INTERFACE" = "y" ] || [ "$IS_SHOULD_CONFIGURE_AWG_INTERFACE" = "Y" ]; then