From 113b8f93992a493856a20a2181966f9339ffed3f Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Mon, 13 Apr 2020 15:53:55 +0500 Subject: [PATCH] enable appstream --- cyberpanel.sh | 2 +- cyberpanel_upgrade.sh | 2 +- install/install.py | 4 ++-- install/installCyberPanel.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index b6c8525b7..282be2d53 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -400,7 +400,7 @@ fi install_required() { if [[ $CENTOS_8 == "True" ]] ; then - sed -i 's|enabled=1|enabled=0|g' /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 a47d603a3..913925bb0 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 -sed -i 's|enabled=1|enabled=0|g' /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 diff --git a/install/install.py b/install/install.py index cb1720b02..f93461f28 100755 --- a/install/install.py +++ b/install/install.py @@ -692,7 +692,7 @@ class preFlightsChecks: if self.distro == centos: command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre' elif self.distro == cent8: - command = 'dnf --enablerepo=CyberPanel install postfix postfix-mysql -y ' + command = 'dnf --enablerepo=CyberPanel install postfix3 postfix3-mysql -y ' else: command = 'apt-get -y debconf-utils' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) @@ -721,7 +721,7 @@ class preFlightsChecks: if self.distro == centos or self.distro == cent8: command = 'yum --enablerepo=CyberPanel -y install dovecot dovecot-mysql' elif self.distro == cent8: - command = 'dnf --enablerepe=CyberPanel install dovecot23 dovecot23-mysql -y' + command = 'dnf --enablerepo=CyberPanel install dovecot23 dovecot23-mysql -y' else: command = 'apt-get -y install dovecot-mysql' diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index a664f6631..f8edb0f5a 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -218,7 +218,7 @@ class InstallCyberPanel: elif self.distro == centos: command = 'yum --enablerepo=CyberPanel -y install mariadb-server' elif self.distro == cent8: - command = 'dnf -y install mariadb-server' + command = 'dnf --enablerepo=CyberPanel -y install mariadb-server' install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)