do not depend on CyberPanel own repo fro cent7

This commit is contained in:
Usman Nasir
2020-09-08 20:13:21 +05:00
parent de0c5a3d32
commit 9cc27443e5
3 changed files with 73 additions and 20 deletions

View File

@@ -723,7 +723,7 @@ class preFlightsChecks:
self.stdOut("Install dovecot - do the install")
if self.distro == centos:
command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
command = 'yum install --enablerepo=gf-plus -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
elif self.distro == cent8:
command = 'dnf --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm'
@@ -756,7 +756,7 @@ class preFlightsChecks:
##
if self.distro == centos:
command = 'yum --enablerepo=CyberPanel -y install dovecot dovecot-mysql'
command = 'yum --enablerepo=gf-plus -y install dovecot dovecot-mysql'
elif self.distro == cent8:
command = 'dnf install --enablerepo=gf-plus dovecot23 dovecot23-mysql -y'
else:
@@ -2009,7 +2009,7 @@ milter_default_action = accept
if os.path.exists(CentOSPath):
if self.distro == centos:
command = 'yum --enablerepo=CyberPanel install restic -y'
command = 'yum --enablerepo=restic install restic -y'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
elif self.distro == cent8:

View File

@@ -243,7 +243,11 @@ class InstallCyberPanel:
if self.distro == ubuntu:
command = "apt-get -y install mariadb-server"
elif self.distro == centos:
<<<<<<< HEAD
command = 'yum --enablerepo=CyberPanel -y install mariadb-server'
=======
command = 'yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client'
>>>>>>> 29c0a38e... do not depend on CyberPanel own repo fro cent7
elif self.distro == cent8:
command = 'dnf -y install mariadb-server'