aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-08 19:36:59 +0700
committerShulhan <ms@kilabit.info>2024-03-08 19:36:59 +0700
commit8511447a1a628772e46a3ddb787386a03302a417 (patch)
tree69181217cb83af05cec8743789b5014a8e310aa4
parentb09ff8ec7a6222bcd7ef74e52b90e50b6f5ce111 (diff)
downloadbin.sh-8511447a1a628772e46a3ddb787386a03302a417.tar.xz
bin/wg-activate: turning down all connection before activating the new one
-rwxr-xr-xbin/wg-activate.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/wg-activate.sh b/bin/wg-activate.sh
index 90dcff3..ba8bad8 100755
--- a/bin/wg-activate.sh
+++ b/bin/wg-activate.sh
@@ -28,9 +28,8 @@ for f in $confs; do
got=$(basename "${f%.conf}")
if [[ "$exp" == "$got" ]]; then
activate=$exp
- else
- downs+=("$got")
fi
+ downs+=("$got")
done
if [[ -z "$activate" ]]; then