Correct sqlite filename
This commit is contained in:
parent
c335353797
commit
064efd1a85
@ -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)
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user