import $active korrigiert

This commit is contained in:
Désiré Werner Menrath 2023-10-30 20:01:16 +01:00
parent 298f3998d3
commit 1d7138f0de

2
wire_g
View File

@ -67,10 +67,10 @@ import_wg(){
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
if [ -n $active ]
then
wg_stop
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