From ecf7aebb4284c98cc536ff94fb4d5eb8dfac8f01 Mon Sep 17 00:00:00 2001 From: Domingo Dirutigliano Date: Tue, 10 Sep 2024 02:38:33 +0200 Subject: [PATCH] fix: compose generation fix --- start.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/start.py b/start.py index 6ac70a8..3740a0a 100755 --- a/start.py +++ b/start.py @@ -157,7 +157,7 @@ def write_compose(skip_password = True): "environment": [ f"PORT={args.port}", f"NTHREADS={args.threads}", - f"HEX_SET_PSW={psw_set.encode().hex()}" if psw_set else "" + *([f"HEX_SET_PSW={psw_set.encode().hex()}"] if psw_set else []) ], "volumes": [ "firegex_data:/execute/db", @@ -191,7 +191,6 @@ def write_compose(skip_password = True): "firegex_data": "" } })) - else: compose.write(dict_to_yaml({ "services": { @@ -205,7 +204,7 @@ def write_compose(skip_password = True): "environment": [ f"PORT={args.port}", f"NTHREADS={args.threads}", - f"HEX_SET_PSW={psw_set.encode().hex()}" if psw_set else "" + *([f"HEX_SET_PSW={psw_set.encode().hex()}"] if psw_set else []) ], "volumes": [ "firegex_data:/execute/db" @@ -219,8 +218,6 @@ def write_compose(skip_password = True): "firegex_data": "" } })) - - def get_password(): if volume_exists() or args.startup_psw: