diff --git a/bazarr/check_update.py b/bazarr/check_update.py index 2e7157405..23d5f22ea 100644 --- a/bazarr/check_update.py +++ b/bazarr/check_update.py @@ -1,8 +1,6 @@ from get_argv import config_dir from get_settings import get_general_settings -from scheduler import shutdown_scheduler -from main import restart import os import logging @@ -44,6 +42,9 @@ def check_and_apply_update(): updated() def updated(): + from scheduler import shutdown_scheduler + from main import restart + conn = sqlite3.connect(os.path.join(config_dir, 'db/bazarr.db'), timeout=30) c = conn.cursor() c.execute("UPDATE system SET updated = 1") diff --git a/root/etc/cont-init.d/20-config b/root/etc/cont-init.d/20-config deleted file mode 100644 index e5b988391..000000000 --- a/root/etc/cont-init.d/20-config +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/with-contenv bash - -# permissions -chown -R root:root /bazarr