diff --git a/basic/srv/spotter/appmgr/confupdater.py b/basic/srv/spotter/appmgr/confupdater.py index 366bde3..a95582c 100644 --- a/basic/srv/spotter/appmgr/confupdater.py +++ b/basic/srv/spotter/appmgr/confupdater.py @@ -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])