From 62b0893a9d6f48b858892411f48f8d29a9d8cfd2 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Mon, 13 Apr 2020 11:27:55 +0500 Subject: [PATCH] remove appstream --- cyberpanel.sh | 2 +- cyberpanel_upgrade.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index d5ac3ec86..b6c8525b7 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -400,7 +400,7 @@ fi install_required() { if [[ $CENTOS_8 == "True" ]] ; then - echo 'enabled=0' >> /etc/yum.repos.d/CentOS-AppStream.repo + sed -i 's|enabled=1|enabled=0|g' /etc/yum.repos.d/CentOS-AppStream.repo curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel8.repo > /etc/yum.repos.d/CyberPanel.repo dnf install zip -y elif [[ $CENTOS_8 == "False" ]] ; then diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 60c612ec2..a47d603a3 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -28,7 +28,7 @@ rm -f /etc/yum.repos.d/gf.repo rm -f /etc/yum.repos.d/powerdns-auth-42.repo rm -rf /etc/yum.repos.d/powerdns-auth-master.repo rm -rf /etc/yum.repos.d/gf.repo.rpmnew -echo 'enabled=0' >> /etc/yum.repos.d/CentOS-AppStream.repo +sed -i 's|enabled=1|enabled=0|g' /etc/yum.repos.d/CentOS-AppStream.repo yum clean all yum update -y yum autoremove epel-release -y