allow setting host and password parameters with env vars
This commit is contained in:
+8
-1
@@ -15,7 +15,14 @@ fi
|
||||
|
||||
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
|
||||
echo "Started Archipelago Server"
|
||||
|
||||
Reference in New Issue
Block a user