From 1d7138f0debf5c751ea660335e307e3a6e9f34f2 Mon Sep 17 00:00:00 2001 From: punix Date: Mon, 30 Oct 2023 20:01:16 +0100 Subject: [PATCH] import $active korrigiert --- wire_g | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wire_g b/wire_g index 74bd0a1..b50e155 100755 --- a/wire_g +++ b/wire_g @@ -66,11 +66,11 @@ import_wg(){ then active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') if [ -n $active ] - then - wg_stop + then nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt wg_notify else + wg_stop nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt wg_notify fi