allow setting host and password parameters with env vars

This commit is contained in:
Cleo
2026-06-11 22:17:09 +02:00
parent 24bc1c6f03
commit 8969c9aa32
+8 -1
View File
@@ -15,7 +15,14 @@ fi
echo "Using savefile ${savefile}" echo "Using savefile ${savefile}"
./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD} cmd="./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD}"
if [[ -n "$HOST" ]]; then
cmd="${cmd} --host ${HOST}"
fi
if [[ -n "$ADMIN_PASSWORD" ]]; then
cmd="${cmd} --password ${ADMIN_PASSWORD}"
fi
$cmd
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
echo "Started Archipelago Server" echo "Started Archipelago Server"