remove cent8 own repo

This commit is contained in:
Usman Nasir
2020-06-08 00:11:14 +05:00
parent 771d660e10
commit f4084f8094
2 changed files with 6 additions and 6 deletions

View File

@@ -691,7 +691,7 @@ class preFlightsChecks:
if self.distro == centos: if self.distro == centos:
command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre' command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
elif self.distro == cent8: elif self.distro == cent8:
command = 'dnf --enablerepo=CyberPanel install postfix3 postfix3-mysql -y ' command = 'dnf install postfix3 postfix3-mysql -y '
else: else:
command = 'apt-get -y debconf-utils' command = 'apt-get -y debconf-utils'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
@@ -720,7 +720,7 @@ class preFlightsChecks:
if self.distro == centos: if self.distro == centos:
command = 'yum --enablerepo=CyberPanel -y install dovecot dovecot-mysql' command = 'yum --enablerepo=CyberPanel -y install dovecot dovecot-mysql'
elif self.distro == cent8: elif self.distro == cent8:
command = 'dnf --enablerepo=CyberPanel install dovecot23 dovecot23-mysql -y' command = 'dnf install dovecot23 dovecot23-mysql -y'
else: else:
command = 'apt-get -y install dovecot-mysql' command = 'apt-get -y install dovecot-mysql'
@@ -1722,7 +1722,7 @@ imap_folder_list_limit = 0
if self.distro == centos: if self.distro == centos:
command = 'yum -y install opendkim' command = 'yum -y install opendkim'
elif self.distro == cent8: elif self.distro == cent8:
command = 'dnf --enablerepo=CyberPanel install opendkim -y' command = 'dnf install opendkim -y'
else: else:
command = 'apt-get -y install opendkim' command = 'apt-get -y install opendkim'
@@ -1947,7 +1947,7 @@ milter_default_action = accept
if self.distro == centos: if self.distro == centos:
command = 'yum --enablerepo=CyberPanel install restic -y' command = 'yum --enablerepo=CyberPanel install restic -y'
else: else:
command = 'dnf --enablerepo=CyberPanel install restic -y --nogpgcheck' command = 'dnf install restic -y --nogpgcheck'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
else: else:

View File

@@ -238,7 +238,7 @@ class InstallCyberPanel:
elif self.distro == centos: elif self.distro == centos:
command = 'yum --enablerepo=CyberPanel -y install mariadb-server' command = 'yum --enablerepo=CyberPanel -y install mariadb-server'
elif self.distro == cent8: elif self.distro == cent8:
command = 'dnf --enablerepo=CyberPanel -y install mariadb-server' command = 'dnf -y install mariadb-server'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
@@ -373,7 +373,7 @@ class InstallCyberPanel:
command = "yum install -y pure-ftpd" command = "yum install -y pure-ftpd"
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
elif self.distro == cent8: elif self.distro == cent8:
command = 'dnf --enablerepo=CyberPanel install pure-ftpd -y' command = 'dnf install pure-ftpd -y'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)