Skip to content
Permalink
Browse files
bug fix: directory check
  • Loading branch information
usmannasir committed Apr 12, 2020
1 parent a6228d4 commit d5b770b80eef3df34b5d914dfcf65dfff08ceac4
Showing 1 changed file with 2 additions and 2 deletions.
@@ -219,7 +219,7 @@ if [[ -f /usr/local/CyberPanel/bin/python2 ]] ; then
rm -rf /usr/local/CyberPanel/bin
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
check_return
elif [[ -f /usr/local/CyberPanel/bin/ ]] ; then
elif [[ -d /usr/local/CyberPanel/bin/ ]] ; then
echo -e "\nNo need to resetup virtualenv at /usr/local/CyberPanel...\n"
else
echo -e "\nNothing found, need fresh setup...\n"
@@ -272,7 +272,7 @@ check_return
if [[ -f /usr/local/CyberCP/bin/python2 ]] ; then
rm -rf /usr/local/CyberCP/bin
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
elif [[ -f /usr/local/CyberCP/bin/ ]] ; then
elif [[ -d /usr/local/CyberCP/bin/ ]] ; then
echo -e "\nNo need to resetup virtualenv at /usr/local/CyberCP...\n"
else
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberCP

0 comments on commit d5b770b

Please sign in to comment.