Commit 33392d87 authored by Laurent Peuch's avatar Laurent Peuch

[mod] fuck systemd

parent 11f9f946
......@@ -54,7 +54,7 @@ def from_cube():
print("Critical part: reloading vpn using '%s'" % command)
try:
subprocess.check_output("sudo systemctl restart ynh-vpnclient".split())
subprocess.check_output("/usr/local/bin/ynh-vpnclient restart".split())
except Exception:
# print("ERROR: command failed, displaying logs")
# print("\n".join(open("/var/log/openvpn.log", "r").split("\n")[-200:]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment