import funktion von > zu 2> geändert
This commit is contained in:
		
							
								
								
									
										4
									
								
								wire_g
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								wire_g
									
									
									
									
									
								
							@@ -84,10 +84,10 @@ import_wg(){
 | 
			
		||||
            if [[ -n $active ]]
 | 
			
		||||
                then  
 | 
			
		||||
                    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
 | 
			
		||||
            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
 | 
			
		||||
            fi
 | 
			
		||||
    fi }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user