import $active korrigiert
This commit is contained in:
parent
298f3998d3
commit
1d7138f0de
4
wire_g
4
wire_g
@ -66,11 +66,11 @@ import_wg(){
|
|||||||
then
|
then
|
||||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||||
if [ -n $active ]
|
if [ -n $active ]
|
||||||
then
|
then
|
||||||
wg_stop
|
|
||||||
nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt
|
nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt
|
||||||
wg_notify
|
wg_notify
|
||||||
else
|
else
|
||||||
|
wg_stop
|
||||||
nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt
|
nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt
|
||||||
wg_notify
|
wg_notify
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user