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:
parent
8f76c91237
commit
2b6d09bf55
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue