From ba36d33c76046d4e3076f7cb88e8a58904b2bfba Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 5 Aug 2024 16:31:34 +0500 Subject: [PATCH] bug fix for almalinux --- CyberCP/wsgi.py | 1 + cyberpanel.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CyberCP/wsgi.py b/CyberCP/wsgi.py index 8544fc1c2..c9cc8c835 100755 --- a/CyberCP/wsgi.py +++ b/CyberCP/wsgi.py @@ -9,6 +9,7 @@ https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ import os + from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings") diff --git a/cyberpanel.sh b/cyberpanel.sh index 90ac908a5..4bd060ba6 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1859,6 +1859,9 @@ Retry_Command "pip install --default-timeout=3600 -r /usr/local/requirments.txt" if [[ "$Server_OS" = "Ubuntu" ]] && [[ "$Server_OS_Version" = "22" ]] ; then cp /usr/bin/python3.10 /usr/local/CyberCP/bin/python3 +else + rsync -av --ignore-existing /usr/lib64/python3.9/ /usr/local/CyberCP/lib64/python3.9/ + Check_Return fi chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib