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