diff --git a/cyberpanel.sh b/cyberpanel.sh index 44b63b6ac..51b2f826e 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -1860,11 +1860,17 @@ 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 -: + if [[ "$Server_OS_Version" = "9" ]]; then + echo "PYTHONHOME=/usr" > /usr/local/lscp/conf/pythonenv.conf + else + # Uncomment and use the following lines if necessary for other OS versions + # rsync -av --ignore-existing /usr/lib64/python3.9/ /usr/local/CyberCP/lib64/python3.9/ + # Check_Return + : + fi fi + chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib64 || true }