import funktion von > zu 2> geändert

This commit is contained in:
Désiré Werner Menrath 2023-11-06 09:23:50 +01:00
parent 5b1a43c016
commit 925a358fca

4
wire_g
View File

@ -84,10 +84,10 @@ import_wg(){
if [[ -n $active ]] if [[ -n $active ]]
then then
wg_stop wg_stop
nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt nmcli connection import type wireguard file $wgconf 2> ${wg_wdir}.tmp.txt
wg_notify wg_notify
else else
nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt nmcli connection import type wireguard file $wgconf 2> ${wg_wdir}.tmp.txt
wg_notify wg_notify
fi fi
fi } fi }