Less verbose
This commit is contained in:
		
					parent
					
						
							
								74749bf07c
							
						
					
				
			
			
				commit
				
					
						e2c4a19049
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -25,7 +25,7 @@ def configure_wireguard_server_on_host(wg_name, config):
 | 
			
		|||
        fd.write(config)
 | 
			
		||||
 | 
			
		||||
    # Ensure the device exists
 | 
			
		||||
    subprocess.run(f"ip link show {wg_name} || sudo ip link add {{wg_name}} type wireguard",
 | 
			
		||||
    subprocess.run(f"ip link show {wg_name} >/dev/null || sudo ip link add {{wg_name}} type wireguard",
 | 
			
		||||
                   shell=True, check=True)
 | 
			
		||||
 | 
			
		||||
    # Ensure the config is correct
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue