remove Tunnel existriert bereits
This commit is contained in:
parent
07eb3a6d15
commit
6de72b969a
8
wire_g
8
wire_g
@ -91,14 +91,6 @@ import_wg(){
|
|||||||
|
|
||||||
*_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null
|
*_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null
|
||||||
then
|
then
|
||||||
for wgconf in $(cat ${wg_wdir}.tunnel.txt)
|
|
||||||
do
|
|
||||||
yad --window-icon=${wg_pic}wg-stop.png \
|
|
||||||
--image=${wg_pic}wg-info.png --button "OK" \
|
|
||||||
--title=$"Wire-G" --image-on-top --borders=8 \
|
|
||||||
--text-align=center --buttons-layout=center \
|
|
||||||
--text $"Tunnel name already exists."
|
|
||||||
done
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user