From e2c4a19049fc1e8c97ef829db43888e02155916c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 26 Dec 2020 14:48:10 +0100 Subject: [PATCH] Less verbose --- uncloud_net/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncloud_net/tasks.py b/uncloud_net/tasks.py index 67cfa18..7d94f3b 100644 --- a/uncloud_net/tasks.py +++ b/uncloud_net/tasks.py @@ -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