Continuing development and removing root directory

This commit is contained in:
Louis Vézina 2018-10-16 20:13:08 -04:00
parent c0276d32c1
commit 88fccbe28f
2 changed files with 3 additions and 6 deletions

View File

@ -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")

View File

@ -1,4 +0,0 @@
#!/usr/bin/with-contenv bash
# permissions
chown -R root:root /bazarr