omit from log

This commit is contained in:
Usman Nasir
2019-11-13 19:59:42 +05:00
parent 8fe8ed5228
commit 1feb9e27db
2 changed files with 2 additions and 2 deletions

View File

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

View File

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