1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00

Change existing default base_url to ''

This commit is contained in:
Moravčík, Marian 2019-12-30 20:28:03 +01:00
parent 8f76c91237
commit 2b6d09bf55

View file

@ -58,6 +58,12 @@ if not settings.auth.apikey:
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
settings.write(handle)
# change default base_url to ''
if settings.general.base_url == '/':
settings.general.base_url = ''
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
settings.write(handle)
# create database file
if not os.path.exists(os.path.join(args.config_dir, 'db', 'bazarr.db')):
import sqlite3