refactor: install code for dovecot/postfix on ubuntu20

This commit is contained in:
Usman Nasir
2020-12-18 01:49:25 +05:00
parent db83fb9530
commit 82eb1e4d2c

View File

@@ -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)