From 209a23db168b8770f7f7f71ffd3df277cf22ea30 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 29 Aug 2022 13:53:17 +0200 Subject: [PATCH] renamed port and fps parameter --- README.md | 2 ++ entrypoint.sh | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6e98fcd..9c6dff9 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Use the `downloadMods.sh` to download mods to a volume. # Environment variables +`PORT` - Port to listen on. default: 2302 +`LIMIT_FPS` - Limit the fps of the server `STEAM_USER` - Steam username `STEAM_PASSWORD` - Steam password `WORKSHOP_COLLECTION` - id of a steam workshop collection. Used to load mods diff --git a/entrypoint.sh b/entrypoint.sh index d680583..d69b29a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -34,12 +34,12 @@ fi # https://community.bistudio.com/wiki/Arma_3:_Startup_Parameters#Server_Options SERVER_ARGS="-name server -config=$VOLUME_HOME/config/config.cfg -profiles=$VOLUME_HOME/config/profiles" -if [ -n "$A3_LIMIT_FPS" ]; then - SERVER_ARGS="${SERVER_ARGS} -limitFPS=${A3_LIMIT_FPS}" +if [ -n "$LIMIT_FPS" ]; then + SERVER_ARGS="${SERVER_ARGS} -limitFPS=${LIMIT_FPS}" fi -if [ -n "$A3_PORT" ]; then - SERVER_ARGS="${SERVER_ARGS} -port=${A3_PORT}" +if [ -n "$PORT" ]; then + SERVER_ARGS="${SERVER_ARGS} -port=${PORT}" fi #