mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2024-12-22 17:10:11 +00:00
Fix first start for docker
This commit is contained in:
parent
922987454f
commit
ef7fc55864
@ -37,9 +37,10 @@ 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:
|
||||||
Path.mkdir(data_dir)
|
if not data_dir.exists():
|
||||||
print(f'Config dir not found, so created at {str(data_dir)}')
|
Path.mkdir(data_dir)
|
||||||
|
print(f'Config dir not found, so created at {str(data_dir)}')
|
||||||
if args.config is None:
|
if args.config is None:
|
||||||
config_path = data_dir / 'config.ini'
|
config_path = data_dir / 'config.ini'
|
||||||
shutil.copy(str(local_dir / 'config-default.ini'),
|
shutil.copy(str(local_dir / 'config-default.ini'),
|
||||||
|
Loading…
Reference in New Issue
Block a user