mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-07 16:12:05 +01:00
debian 12
This commit is contained in:
@@ -2886,7 +2886,14 @@ def main():
|
||||
|
||||
# Now that database is created, run Django migrations
|
||||
preFlightsChecks.stdOut("Running Django migrations...")
|
||||
os.chdir("/usr/local/CyberPanel")
|
||||
# Check which directory exists (installation may be at different stages)
|
||||
if os.path.exists("/usr/local/CyberCP"):
|
||||
os.chdir("/usr/local/CyberCP")
|
||||
elif os.path.exists("/usr/local/cyberpanel"):
|
||||
os.chdir("/usr/local/cyberpanel")
|
||||
else:
|
||||
preFlightsChecks.stdOut("ERROR: Neither /usr/local/CyberCP nor /usr/local/cyberpanel exists!")
|
||||
sys.exit(1)
|
||||
|
||||
# Create fresh migrations for all apps
|
||||
command = "/usr/local/CyberPanel/bin/python manage.py makemigrations"
|
||||
|
||||
Reference in New Issue
Block a user