File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 215215
216216
217217if [[ -f /usr/local/CyberPanel/bin/python2 ]] ; then
218+ echo -e " \nPython 2 dectected, doing resetup...\n"
218219 rm -rf /usr/local/CyberPanel/bin
219220 virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
220221 check_return
221222elif [[ -f /usr/local/CyberPanel/bin/ ]] ; then
222223 echo -e " \nNo need to resetup virtualenv at /usr/local/CyberPanel...\n"
223224else
224- virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
225+ echo -e " \nNothing found, need fresh setup...\n"
226+ virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
225227 check_return
226228fi
227229
@@ -259,7 +261,7 @@ wget https://$GIT_CONTENT_URL/${BRANCH_NAME}/plogical/upgrade.py
259261if [[ $SERVER_COUNTRY == " CN" ]] ; then
260262sed -i ' s|wget https://raw.githubusercontent.com/usmannasir/cyberpanel/v1.9.4/lscpd-0.2.4 -P /usr/local/lscp/bin/|cp -f /usr/local/CyberCP/lscpd-0.2.4 /usr/local/lscp/bin/lscpd-0.2.4|g' upgrade.py
261263sed -i ' s|wget https://raw.githubusercontent.com/usmannasir/cyberpanel/%s/lscpd-0.2.4 -P /usr/local/lscp/bin/|cp -f /usr/local/CyberCP/lscpd-0.2.4 /usr/local/lscp/bin/lscpd-0.2.4|g' upgrade.py
262- sed -i $' s/0.2.4\' % (branch)/0.2.4\' /' upgrade.py
264+ # sed -i $'s/0.2.4\' % (branch)/0.2.4\'/' upgrade.py
263265sed -i ' s|raw.githubusercontent.com/usmannasir/cyberpanel|' ${GIT_CONTENT_URL} ' |g' upgrade.py
264266sed -i ' s|git clone https://github.com/usmannasir/cyberpanel|git clone https://' ${GIT_URL} ' |g' upgrade.py
265267fi
You can’t perform that action at this time.
0 commit comments