add support for ubuntu 24

This commit is contained in:
usmannasir
2025-06-28 17:52:18 +05:00
parent 103b930957
commit cb31db90f7
3 changed files with 31 additions and 0 deletions

View File

@@ -720,6 +720,17 @@ password="%s"
os.chdir("/usr/local/CyberCP")
# Clear Python cache to avoid botocore vendored six import errors
command = "find /usr/local/CyberCP -name '*.pyc' -delete"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
command = "find /usr/local/CyberCP -name '__pycache__' -type d -exec rm -rf {} +"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
# Ensure six module is installed to fix botocore compatibility
command = "/usr/local/CyberPanel/bin/python -m pip install six==1.16.0"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
command = "/usr/local/CyberPanel/bin/python manage.py makemigrations"
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)