From 94d5e2384435ad033c1ddbb6b1c2eaea71245329 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 21 Jun 2022 13:35:23 +0500 Subject: [PATCH] collect latest static content --- install/install.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/install.py b/install/install.py index 70b4d8ca4..60f144945 100755 --- a/install/install.py +++ b/install/install.py @@ -488,6 +488,9 @@ password="%s" if not os.path.exists("/usr/local/CyberCP/public"): os.mkdir("/usr/local/CyberCP/public") + command = "/usr/local/CyberPanel/bin/python manage.py collectstatic --noinput --clear" + preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) + ## Moving static content to lscpd location command = 'mv static /usr/local/CyberCP/public/' preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)