From 6532ed61e0d89241ad4c812e4701f902be11af38 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 14 Aug 2018 16:27:15 +0200 Subject: [PATCH] Add missing variable in spotter-appmgr confupdater --- basic/srv/spotter/appmgr/confupdater.py | 1 + 1 file changed, 1 insertion(+) 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])