bug fix: upgrade

This commit is contained in:
Usman Nasir
2020-04-11 12:37:12 +05:00
parent c2c23c72b6
commit 25ed0cc858
2 changed files with 2 additions and 1 deletions

View File

@@ -216,6 +216,7 @@ check_return
rm -f requirments.txt
wget -O /usr/local/cyberpanel-pip.zip https://rep.cyberpanel.net/cyberpanel-pip.zip
check_return
rm -rf /usr/local/pip-packs/
unzip /usr/local/cyberpanel-pip.zip -d /usr/local
check_return
. /usr/local/CyberPanel/bin/activate

View File

@@ -2064,7 +2064,7 @@ vmail
if os.path.exists(Upgrade.CentOSPath):
command = 'yum list installed'
Upgrade.installedOutput = subprocess.check_output(shlex.split(command))
Upgrade.installedOutput = subprocess.check_output(shlex.split(command)).decode()
command = 'systemctl stop cpssh'
Upgrade.executioner(command, 'fix csf if there', 0)