bug fix: upgrade

This commit is contained in:
Usman Nasir
2019-11-07 17:13:55 +05:00
parent 4595d3da12
commit 65ce3e5098

View File

@@ -1309,12 +1309,14 @@ class Upgrade:
if os.path.exists('cyberpanel'):
shutil.rmtree('cyberpanel')
if os.path.exists('CyberCP'):
shutil.rmtree('CyberCP')
command = 'git clone https://github.com/usmannasir/cyberpanel'
Upgrade.executioner(command, 'Download CyberPanel', 1)
shutil.move('cyberpanel', 'CyberCP')
## Copy settings file
data = open("/usr/local/settings.py", 'r').readlines()