Commit 98fefaf2 authored by Laurent Peuch's avatar Laurent Peuch

[fix] try to debug stuff

parent d273ed58
......@@ -50,14 +50,14 @@ def from_cube():
assert os.system(command) == 0, "ERROR: command failed"
time.sleep(5)
command = "systemctl restart ynh-vpnclient"
print("Critical part: reloading vpn using '%s'" % command)
time.sleep(5)
if os.system(command) != 0:
time.sleep(5)
print("ERROR: command failed, displaying logs")
os.system("tail -n 200 /var/log/openvpn-client.log")
sys.exit(1)
# command = "systemctl restart ynh-vpnclient"
# print("Critical part: reloading vpn using '%s'" % command)
# time.sleep(5)
# if os.system(command) != 0:
# time.sleep(5)
# print("ERROR: command failed, displaying logs")
# os.system("tail -n 200 /var/log/openvpn-client.log")
# sys.exit(1)
if __name__ == '__main__':
......
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