Change existing default base_url to ''

pull/884/head
Moravčík, Marian 5 years ago
parent 8f76c91237
commit 2b6d09bf55

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

Loading…
Cancel
Save