File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ if [[ -f /usr/local/CyberPanel/bin/python2 ]] ; then
219219 rm -rf /usr/local/CyberPanel/bin
220220 virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
221221 check_return
222- elif [[ -f /usr/local/CyberPanel/bin/ ]] ; then
222+ elif [[ -d /usr/local/CyberPanel/bin/ ]] ; then
223223 echo -e " \nNo need to resetup virtualenv at /usr/local/CyberPanel...\n"
224224else
225225 echo -e " \nNothing found, need fresh setup...\n"
@@ -272,7 +272,7 @@ check_return
272272if [[ -f /usr/local/CyberCP/bin/python2 ]] ; then
273273 rm -rf /usr/local/CyberCP/bin
274274 virtualenv -p /usr/bin/python3 /usr/local/CyberCP
275- elif [[ -f /usr/local/CyberCP/bin/ ]] ; then
275+ elif [[ -d /usr/local/CyberCP/bin/ ]] ; then
276276 echo -e " \nNo need to resetup virtualenv at /usr/local/CyberCP...\n"
277277else
278278 virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberCP
You can’t perform that action at this time.
0 commit comments