From 69c05a0e426dd34776039b8e6d1f99a5d7932a97 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Tue, 18 Jun 2019 17:06:06 +0200 Subject: [PATCH] debug mysql cmd dans install.py --- install/install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index 41b1541..022dc81 100755 --- a/install/install.py +++ b/install/install.py @@ -309,7 +309,9 @@ def install_database(venv): # --- The user pyros must be created in the database print(Colors.LOG_BLUE +"-----------------------------Please enter your MYSQL root password-----------------------------" + Colors.END) #process = subprocess.Popen("echo \"" + sql_query + "\" |"+ mysql_call_root, shell=True) - process = subprocess.Popen('echo "' + sql_query + '" | '+ mysql_call_root, shell=True) + sql_cmd = 'echo "' + sql_query + '" | '+ mysql_call_root + print("Executing sql cmd: ", sql_cmd) + process = subprocess.Popen(sql_cmd, shell=True) process.wait() if (process.returncode != 0): sys.stderr.write(Colors.ERROR + "ERROR !: db configuration failed !" + Colors.END + "\r\n") -- libgit2 0.21.2