mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +01:00
Update install.py
Added missing install to apt-get and also calls to ensure the commands were getting executed vs just the last one command mentioned.
This commit is contained in:
@@ -759,16 +759,17 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
|
|||||||
|
|
||||||
if self.distro == centos:
|
if self.distro == centos:
|
||||||
command = 'yum install --enablerepo=gf-plus -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
|
command = 'yum install --enablerepo=gf-plus -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
elif self.distro == cent8:
|
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'
|
command = 'dnf --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm'
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
command = 'dnf install --enablerepo=gf-plus postfix3 postfix3-mysql -y'
|
command = 'dnf install --enablerepo=gf-plus postfix3 postfix3-mysql -y'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
command = 'apt-get -y debconf-utils'
|
command = 'apt-get -y install 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)
|
||||||
file_name = self.cwd + '/pf.unattend.text'
|
file_name = self.cwd + '/pf.unattend.text'
|
||||||
pf = open(file_name, 'w')
|
pf = open(file_name, 'w')
|
||||||
|
|||||||
Reference in New Issue
Block a user