Add missing variable in spotter-appmgr confupdater
This commit is contained in:
parent
9036751cbe
commit
6532ed61e0
@ -27,6 +27,7 @@ def replace_file_line(filename, oldline, newline):
|
|||||||
os.unlink(TMP_FILE)
|
os.unlink(TMP_FILE)
|
||||||
|
|
||||||
def run_mysql_query(query, database):
|
def run_mysql_query(query, database):
|
||||||
|
maria_started = tools.is_service_started('mariadb')
|
||||||
if not maria_started:
|
if not maria_started:
|
||||||
tools.start_service('mariadb')
|
tools.start_service('mariadb')
|
||||||
subprocess.run(['docker', 'exec', '-i', 'mariadb', 'mysql', '-e', query, database])
|
subprocess.run(['docker', 'exec', '-i', 'mariadb', 'mysql', '-e', query, database])
|
||||||
|
Loading…
Reference in New Issue
Block a user