Skip to content

Commit 588fb1d

Browse files
committed
bug fix: cp upgrade.sh
1 parent c443e22 commit 588fb1d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cyberpanel_upgrade.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ rm -f /etc/yum.repos.d/ius.repo
2525
rm -f /etc/yum.repos.d/ius-testing.repo
2626
rm -f /etc/yum.repos.d/MariaDB.repo
2727
rm -f /etc/yum.repos.d/lux.repo
28+
yum clean all
29+
yum update -y
30+
yum autoremove epel-release -y
31+
rm -f /etc/yum.repos.d/epel.repo
32+
rm -f /etc/yum.repos.d/epel.repo.rpmsave
2833

2934
##
3035

@@ -183,7 +188,6 @@ fi
183188
if [ $SERVER_OS = "CentOS7" ] ; then
184189
yum -y install yum-utils
185190
yum -y groupinstall development
186-
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
187191
yum -y install python36u python36u-pip python36u-devel
188192
elif [ $SERVER_OS = "CentOS8" ] ; then
189193
yum install -y wget strace htop net-tools telnet curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel mariadb-devel curl-devel git platform-python-devel tar
@@ -216,8 +220,6 @@ unzip /usr/local/cyberpanel-pip.zip -d /usr/local
216220
check_return
217221
. /usr/local/CyberPanel/bin/activate
218222
check_return
219-
pip3.6 install --ignore-installed /usr/local/pip-packs/*
220-
check_return
221223

222224
if [ $SERVER_OS = "Ubuntu" ] ; then
223225
. /usr/local/CyberPanel/bin/activate
@@ -227,7 +229,7 @@ if [ $SERVER_OS = "Ubuntu" ] ; then
227229
else
228230
source /usr/local/CyberPanel/bin/activate
229231
check_return
230-
pip3.6 install --ignore-installed -r requirements.txt
232+
pip3.6 install --ignore-installed /usr/local/pip-packs/*
231233
check_return
232234
fi
233235

0 commit comments

Comments
 (0)