Skip to content

Commit 25ed0cc

Browse files
committed
bug fix: upgrade
1 parent c2c23c7 commit 25ed0cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cyberpanel_upgrade.sh

+1
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ check_return
216216
rm -f requirments.txt
217217
wget -O /usr/local/cyberpanel-pip.zip https://rep.cyberpanel.net/cyberpanel-pip.zip
218218
check_return
219+
rm -rf /usr/local/pip-packs/
219220
unzip /usr/local/cyberpanel-pip.zip -d /usr/local
220221
check_return
221222
. /usr/local/CyberPanel/bin/activate

plogical/upgrade.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ def upgrade(branch):
20642064

20652065
if os.path.exists(Upgrade.CentOSPath):
20662066
command = 'yum list installed'
2067-
Upgrade.installedOutput = subprocess.check_output(shlex.split(command))
2067+
Upgrade.installedOutput = subprocess.check_output(shlex.split(command)).decode()
20682068

20692069
command = 'systemctl stop cpssh'
20702070
Upgrade.executioner(command, 'fix csf if there', 0)

0 commit comments

Comments
 (0)