From 3f733e0a608398a651cc2d428e69ab332d3c4c6a Mon Sep 17 00:00:00 2001 From: usmannasir Date: Tue, 6 Aug 2024 14:03:00 +0500 Subject: [PATCH] bug fix to alma9 --- cyberpanel.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 }