Commit d5b770b 1 parent a6228d4 commit d5b770b Copy full SHA for d5b770b
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ if [[ -f /usr/local/CyberPanel/bin/python2 ]] ; then
219
219
rm -rf /usr/local/CyberPanel/bin
220
220
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
221
221
check_return
222
- elif [[ -f /usr/local/CyberPanel/bin/ ]] ; then
222
+ elif [[ -d /usr/local/CyberPanel/bin/ ]] ; then
223
223
echo -e " \nNo need to resetup virtualenv at /usr/local/CyberPanel...\n"
224
224
else
225
225
echo -e " \nNothing found, need fresh setup...\n"
@@ -272,7 +272,7 @@ check_return
272
272
if [[ -f /usr/local/CyberCP/bin/python2 ]] ; then
273
273
rm -rf /usr/local/CyberCP/bin
274
274
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
275
- elif [[ -f /usr/local/CyberCP/bin/ ]] ; then
275
+ elif [[ -d /usr/local/CyberCP/bin/ ]] ; then
276
276
echo -e " \nNo need to resetup virtualenv at /usr/local/CyberCP...\n"
277
277
else
278
278
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberCP
You can’t perform that action at this time.
0 commit comments