diff --git a/install/install.py b/install/install.py index de6ceefcb..c23d70de4 100755 --- a/install/install.py +++ b/install/install.py @@ -1164,7 +1164,7 @@ class preFlightsChecks: def install_postfix_davecot(self): - self.stdOut("Install dovecot") + self.stdOut("Install dovecot - first remove postfix") try: if self.distro == centos: command = 'yum remove postfix -y' @@ -1173,14 +1173,17 @@ class preFlightsChecks: subprocess.call(shlex.split(command)) + self.stdOut("Install dovecot - do the install") count = 0 while(1): if self.distro == centos: command = 'yum install -y http://mirror.ghettoforge.org/distributions/gf/el/7/plus/x86_64//postfix3-3.2.4-1.gf.el7.x86_64.rpm' else: - command = 'debconf-set-selections <<< "postfix postfix/mailname string ' + str(socket.getfqdn()) + '";' \ - ' debconf-set-selections <<< "postfix postfix/main_mailer_type string \'Internet Site\'";' \ - ' apt-get install -y postfix' + command = 'debconf-set-selections <<< "postfix postfix/mailname string ' + str(socket.getfqdn()) + '"' + subprocess.call(shlex.split(command)) + command = 'debconf-set-selections <<< "postfix postfix/main_mailer_type string \'Internet Site\'"' + subprocess.call(shlex.split(command)) + command = 'apt-get -y install postfix' cmd = shlex.split(command) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 3b330d3fa..432cd29c6 100644 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -927,7 +927,7 @@ class InstallCyberPanel: while(1): if self.distro == ubuntu: - command = "apt-get -y install pdns-server pdns-backend-mysql" + command = "DEBIAN_FRONTEND=noninteractive apt-get -y install pdns-server pdns-backend-mysql" else: command = 'yum -y install pdns pdns-backend-mysql' cmd = shlex.split(command) @@ -1124,13 +1124,13 @@ class InstallCyberPanel: if res == 1: count = count + 1 - InstallCyberPanel.stdOut("Trying to configure LSCPD, trying again, try number: " + str(count)) + InstallCyberPanel.stdOut("Trying to extract LSCPD, trying again, try number: " + str(count)) if count == 3: - logging.InstallLog.writeToFile("Failed to configure LSCPD, exiting installer! [installLSCPD]") + logging.InstallLog.writeToFile("Failed to extract LSCPD, exiting installer! [installLSCPD]") InstallCyberPanel.stdOut("Installation failed, consult: /var/log/installLogs.txt") os._exit(0) else: - logging.InstallLog.writeToFile("LSCPD successfully configured!") + logging.InstallLog.writeToFile("LSCPD successfully extracted!") InstallCyberPanel.stdOut("LSCPD successfully extracted!") break