From b8e11e5ab1751cde63ea39096eb86399bfda53cb Mon Sep 17 00:00:00 2001 From: rperper Date: Thu, 25 Oct 2018 16:18:47 -0400 Subject: [PATCH] Minor string handling bugs. --- install/install.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/install.py b/install/install.py index 5f4a9e442..f087164ce 100644 --- a/install/install.py +++ b/install/install.py @@ -1,4 +1,4 @@ -pathimport sys +import sys import subprocess import shutil import installLog as logging @@ -211,10 +211,10 @@ class preFlightsChecks: cmd = shlex.split(command) res = subprocess.call(cmd) if res != 0: - logging.InstallLog.writeToFile("Unable to download Ubuntu CyberPanel installer! [installCyberPanelRepo]:"" - " Error #" + str(res)) - preFlightsChecks.stdOut("Unable to download Ubuntu CyberPanel installer! [installCyberPanelRepo]:"" + logging.InstallLog.writeToFile("Unable to download Ubuntu CyberPanel installer! [installCyberPanelRepo]:" " Error #" + str(res)) + preFlightsChecks.stdOut("Unable to download Ubuntu CyberPanel installer! [installCyberPanelRepo]:" + " Error #" + str(res)) os._exit(os.EX_NOINPUT); os.chmod(filename, stat.S_IRWXU | stat.s_S_IRWXG) @@ -224,9 +224,9 @@ class preFlightsChecks: res = subprocess.call(cmd) if res != 0: - logging.InstallLog.writeToFile("Unable to install Ubuntu CyberPanel! [installCyberPanelRepo]:"" + logging.InstallLog.writeToFile("Unable to install Ubuntu CyberPanel! [installCyberPanelRepo]:" " Error #" + str(res)) - preFlightsChecks.stdOut("Unable to install Ubuntu CyberPanel! [installCyberPanelRepo]:"" + preFlightsChecks.stdOut("Unable to install Ubuntu CyberPanel! [installCyberPanelRepo]:" " Error #" + str(res)) os._exit(os.EX_NOINPUT);