Commit 69c05a0e426dd34776039b8e6d1f99a5d7932a97

Authored by Etienne Pallier
1 parent a7865423
Exists in dev

debug mysql cmd dans install.py

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
install/install.py
... ... @@ -309,7 +309,9 @@ def install_database(venv):
309 309 # --- The user pyros must be created in the database
310 310 print(Colors.LOG_BLUE +"-----------------------------Please enter your MYSQL root password-----------------------------" + Colors.END)
311 311 #process = subprocess.Popen("echo \"" + sql_query + "\" |"+ mysql_call_root, shell=True)
312   - process = subprocess.Popen('echo "' + sql_query + '" | '+ mysql_call_root, shell=True)
  312 + sql_cmd = 'echo "' + sql_query + '" | '+ mysql_call_root
  313 + print("Executing sql cmd: ", sql_cmd)
  314 + process = subprocess.Popen(sql_cmd, shell=True)
313 315 process.wait()
314 316 if (process.returncode != 0):
315 317 sys.stderr.write(Colors.ERROR + "ERROR !: db configuration failed !" + Colors.END + "\r\n")
... ...