Fix first start for docker

This commit is contained in:
Harvey Tindall 2020-05-02 19:09:02 +01:00
parent 922987454f
commit ef7fc55864

View File

@ -37,7 +37,8 @@ else:
local_dir = (Path(__file__).parents[2] / 'data').resolve() local_dir = (Path(__file__).parents[2] / 'data').resolve()
first_run = False first_run = False
if not data_dir.exists(): if data_dir.exists() is False or (data_dir / 'config.ini').exists() is False:
if not data_dir.exists():
Path.mkdir(data_dir) Path.mkdir(data_dir)
print(f'Config dir not found, so created at {str(data_dir)}') print(f'Config dir not found, so created at {str(data_dir)}')
if args.config is None: if args.config is None: