fix: compose generation fix

This commit is contained in:
Domingo Dirutigliano
2024-09-10 02:38:33 +02:00
parent 35c6965072
commit ecf7aebb42

View File

@@ -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"
@@ -220,8 +219,6 @@ def write_compose(skip_password = True):
}
}))
def get_password():
if volume_exists() or args.startup_psw:
return None