fix: compose generation fix
This commit is contained in:
7
start.py
7
start.py
@@ -157,7 +157,7 @@ def write_compose(skip_password = True):
|
|||||||
"environment": [
|
"environment": [
|
||||||
f"PORT={args.port}",
|
f"PORT={args.port}",
|
||||||
f"NTHREADS={args.threads}",
|
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": [
|
"volumes": [
|
||||||
"firegex_data:/execute/db",
|
"firegex_data:/execute/db",
|
||||||
@@ -191,7 +191,6 @@ def write_compose(skip_password = True):
|
|||||||
"firegex_data": ""
|
"firegex_data": ""
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
compose.write(dict_to_yaml({
|
compose.write(dict_to_yaml({
|
||||||
"services": {
|
"services": {
|
||||||
@@ -205,7 +204,7 @@ def write_compose(skip_password = True):
|
|||||||
"environment": [
|
"environment": [
|
||||||
f"PORT={args.port}",
|
f"PORT={args.port}",
|
||||||
f"NTHREADS={args.threads}",
|
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": [
|
"volumes": [
|
||||||
"firegex_data:/execute/db"
|
"firegex_data:/execute/db"
|
||||||
@@ -219,8 +218,6 @@ def write_compose(skip_password = True):
|
|||||||
"firegex_data": ""
|
"firegex_data": ""
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_password():
|
def get_password():
|
||||||
if volume_exists() or args.startup_psw:
|
if volume_exists() or args.startup_psw:
|
||||||
|
|||||||
Reference in New Issue
Block a user