Commit d273ed58 authored by Laurent Peuch's avatar Laurent Peuch

[fix] weird behavior, let's use sleep to see if it fix it

parent 22ef3486
import os
import sys
import time
import shutil
from renew import renew
......@@ -47,10 +48,13 @@ def from_cube():
for command in commands:
with debug("Running command '%s'" % command.replace(password, "xxxxxxxxxxxxxxxxxxxxx")):
assert os.system(command) == 0, "ERROR: command failed"
command = "systemctl restart ynh-vpnclient"
print("Critical part: reloading vpn using '%s'" % command)
if os.system(command) != 0:
print("ERROR: command failed, displaying logs")
os.system("tail -n 200 /var/log/openvpn-client.log")
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