Skip to content

Commit

Permalink
ubuntu 22 python path
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Nov 12, 2022
1 parent 7427667 commit 1aeb604
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cyberpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,10 @@ Debug_Log2 "Installing requirments..,3"
Retry_Command "pip install --default-timeout=3600 -r /usr/local/requirments.txt"
Check_Return "requirments" "no_exit"

if [[ "$Server_OS" = "Ubuntu" ]] && [[ "$Server_OS_Version" = "22" ]] ; then
cp /usr/bin/python3.10 /usr/local/CyberCP/bin/python3
fi

rm -rf cyberpanel
echo -e "\nFetching files from ${Git_Clone_URL}...\n"

Expand Down Expand Up @@ -1814,6 +1818,10 @@ fi
Retry_Command "pip install --default-timeout=3600 -r /usr/local/requirments.txt"
Check_Return "requirments.txt" "no_exit"

if [[ "$Server_OS" = "Ubuntu" ]] && [[ "$Server_OS_Version" = "22" ]] ; then
cp /usr/bin/python3.10 /usr/local/CyberCP/bin/python3
fi

chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib
chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib64 || true
}
Expand Down

0 comments on commit 1aeb604

Please sign in to comment.