mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-21 11:31:32 +01:00
Merge branch 'v2.3.2-dev' of https://github.com/usmannasir/cyberpanel into v2.3.2-dev
This commit is contained in:
@@ -567,6 +567,15 @@ autocreate_system_folders = On
|
||||
if not os.path.exists("/usr/local/CyberCP/public"):
|
||||
os.mkdir("/usr/local/CyberCP/public")
|
||||
|
||||
cwd = os.getcwd()
|
||||
|
||||
os.chdir('/usr/local/CyberCP')
|
||||
|
||||
command = '/usr/local/CyberPanel/bin/python manage.py collectstatic --noinput --clear'
|
||||
Upgrade.executioner(command, 'Remove old static content', 0)
|
||||
|
||||
os.chdir(cwd)
|
||||
|
||||
shutil.move("/usr/local/CyberCP/static", "/usr/local/CyberCP/public/")
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user