mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 01:27:07 +00:00
Removing auto-restart after updating from source. This is raising too much issues.
This commit is contained in:
parent
bc0661c433
commit
127d9b9bc7
1 changed files with 1 additions and 10 deletions
|
@ -44,17 +44,8 @@ def check_and_apply_update():
|
||||||
updated()
|
updated()
|
||||||
|
|
||||||
def 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)
|
conn = sqlite3.connect(os.path.join(config_dir, 'db/bazarr.db'), timeout=30)
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
c.execute("UPDATE system SET updated = 1")
|
c.execute("UPDATE system SET updated = 1")
|
||||||
conn.commit()
|
conn.commit()
|
||||||
c.close()
|
c.close()
|
||||||
|
|
||||||
# Shutdown the scheduler waiting for jobs to finish
|
|
||||||
shutdown_scheduler()
|
|
||||||
|
|
||||||
# Restart Bazarr
|
|
||||||
restart()
|
|
Loading…
Reference in a new issue