Commit 6f51fba3 authored by Laurent Peuch's avatar Laurent Peuch

[fix] variable didn't exist anymore

parent 33392d87
......@@ -52,9 +52,10 @@ def from_cube():
print("Critical part: reloading vpn using '%s'" % command)
restart_command = "/usr/local/bin/ynh-vpnclient restart"
print("Critical part: reloading vpnclient using '%s'" % restart_command)
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