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 4593a68c5a
commit 29c0a38e4c
3 changed files with 66 additions and 35 deletions

View File

@@ -749,7 +749,7 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
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'
@@ -782,7 +782,7 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
##
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:
@@ -2036,7 +2036,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: