mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-04 19:30:45 +01:00
bug fix: upgrade
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user