mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
refactor: install code for dovecot/postfix on ubuntu20
This commit is contained in:
@@ -766,15 +766,15 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
|
|||||||
|
|
||||||
command = 'dnf install --enablerepo=gf-plus postfix3 postfix3-mysql -y'
|
command = 'dnf install --enablerepo=gf-plus 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)
|
||||||
# file_name = self.cwd + '/pf.unattend.text'
|
file_name = self.cwd + '/pf.unattend.text'
|
||||||
# pf = open(file_name, 'w')
|
pf = open(file_name, 'w')
|
||||||
# pf.write('postfix postfix/mailname string ' + str(socket.getfqdn() + '\n'))
|
pf.write('postfix postfix/mailname string ' + str(socket.getfqdn() + '\n'))
|
||||||
# pf.write('postfix postfix/main_mailer_type string "Internet Site"\n')
|
pf.write('postfix postfix/main_mailer_type string "Internet Site"\n')
|
||||||
# pf.close()
|
pf.close()
|
||||||
# command = 'debconf-set-selections ' + file_name
|
command = 'debconf-set-selections ' + file_name
|
||||||
# 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 = 'apt-get -y install postfix postfix-mysql'
|
command = 'apt-get -y install postfix postfix-mysql'
|
||||||
# os.remove(file_name)
|
# os.remove(file_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user