Correct sqlite filename

This commit is contained in:
nolash 2021-09-08 17:47:49 +02:00
parent c335353797
commit 064efd1a85
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ if m != None:
logg.info('using mode {}'.format(mode.value))
if config.get('_SOURCE') == None:
sys.stderr.write('source data missing')
sys.stderr.write('source data missing\n')
sys.exit(1)

View File

@ -79,7 +79,7 @@ if m != None:
logg.info('using mode {}'.format(mode.value))
if config.get('_SOURCE') == None:
sys.stderr.write('source data missing')
sys.stderr.write('source data missing\n')
sys.exit(1)

View File

@ -64,7 +64,7 @@ if not config.get('SESSION_SOCKET_PATH'):
config.add(socket_path, 'SESSION_SOCKET_PATH', True)
if config.get('DATABASE_ENGINE') == 'sqlite':
config.add(os.path.join(config.get('SESSION_DATA_DIR'), config.get('DATABASE_NAME')), 'DATABASE_NAME', exists_ok=True)
config.add(os.path.join(config.get('SESSION_DATA_DIR'), config.get('DATABASE_NAME') + '.sqlite'), 'DATABASE_NAME', exists_ok=True)
config.censor('PASSWORD', 'DATABASE')
logg.debug('config loaded:\n{}'.format(config))