enable appstream

This commit is contained in:
Usman Nasir
2020-04-13 15:53:55 +05:00
parent 89f891b29f
commit 113b8f9399
4 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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'

View File

@@ -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)