|
|
@ -58,6 +58,12 @@ if not settings.auth.apikey:
|
|
|
|
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
|
|
|
|
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
|
|
|
|
settings.write(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
|
|
|
|
# create database file
|
|
|
|
if not os.path.exists(os.path.join(args.config_dir, 'db', 'bazarr.db')):
|
|
|
|
if not os.path.exists(os.path.join(args.config_dir, 'db', 'bazarr.db')):
|
|
|
|
import sqlite3
|
|
|
|
import sqlite3
|
|
|
|