diff --git a/install/install.py b/install/install.py index 389b73832..9ce0c9892 100755 --- a/install/install.py +++ b/install/install.py @@ -132,6 +132,7 @@ class preFlightsChecks: if log: logging.InstallLog.writeToFile(message) if do_exit: + logging.InstallLog.writeToFile(message) sys.exit(code) def mountTemp(self): diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 5df300c29..badfef6cf 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -3,7 +3,6 @@ import subprocess import os from mysqlUtilities import mysqlUtilities import installLog as logging -import shlex import randomPassword import errno import MySQLdb as mariadb @@ -279,7 +278,7 @@ class InstallCyberPanel: command = 'mysql -u root -e "' + passwordCMD + '"' - install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) + install.preFlightsChecks.call(command, self.distro, command, command, 0, 0, os.EX_OSERR) def startMariaDB(self):