Less verbose

This commit is contained in:
Nico Schottelius 2020-12-26 14:48:10 +01:00
parent 74749bf07c
commit e2c4a19049
1 changed files with 1 additions and 1 deletions

View File

@ -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