Skip to content

Commit

Permalink
possible bug fix in cloudlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Oct 24, 2024
1 parent 92d54ea commit c19762e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cyberpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1122,17 +1122,17 @@ virtualenv -p /usr/bin/python3 /usr/local/CyberPanel
Check_Return
fi

if [[ "$Server_OS" = "Ubuntu" ]] && [[ "$Server_OS_Version" != "20" ]] ; then
if [ "$Server_OS" = "Ubuntu" ]; then
# shellcheck disable=SC1091
source /usr/local/CyberPanel/bin/activate
. /usr/local/CyberPanel/bin/activate
else
# shellcheck disable=SC1091
. /usr/local/CyberPanel/bin/activate
source /usr/local/CyberPanel/bin/activate
fi

Debug_Log2 "Installing requirments..,3"

Retry_Command "/usr/local/CyberCP/bin/pip3 install --default-timeout=3600 -r /usr/local/requirments.txt"
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
Expand Down

0 comments on commit c19762e

Please sign in to comment.