Add missing variable in spotter-appmgr confupdater

This commit is contained in:
Disassembler 2018-08-14 16:27:15 +02:00
parent 9036751cbe
commit 6532ed61e0
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -27,6 +27,7 @@ def replace_file_line(filename, oldline, newline):
os.unlink(TMP_FILE)
def run_mysql_query(query, database):
maria_started = tools.is_service_started('mariadb')
if not maria_started:
tools.start_service('mariadb')
subprocess.run(['docker', 'exec', '-i', 'mariadb', 'mysql', '-e', query, database])