This commit is contained in:
usmannasir
2018-05-14 22:26:25 +05:00
parent 0465f05beb
commit be187ddb92
30 changed files with 15445 additions and 5461 deletions

View File

@@ -6,6 +6,7 @@ import subprocess
import shutil
import requests
import json
import time
class Upgrade:
logPath = "/usr/local/lscp/logs/upgradeLog"
@@ -88,6 +89,8 @@ class Upgrade:
command = "systemctl restart gunicorn.socket"
subprocess.call(shlex.split(command))
time.sleep(3)
## Upgrade version
r = requests.post("http://localhost:5003/base/upgradeVersion")