diff --git a/entrypoint.sh b/entrypoint.sh index b3c350a..d680583 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -46,7 +46,7 @@ fi # PREAPRE MODS # -MOD_LINK_DIR="/tmp/arma3mods" +MOD_LINK_DIR="/home/steam/server/mods" mkdir -p "$MOD_LINK_DIR" rm -f "$MOD_LINK_DIR"/* @@ -62,13 +62,11 @@ do fi ln -s "$VOLUME_HOME/mods/$mod_id" "$MOD_LINK_DIR/$mod_id" - MODS_TO_LOAD="${MODS_TO_LOAD}$MOD_LINK_DIR/${mod_id};" + MODS_TO_LOAD="${MODS_TO_LOAD}mods/${mod_id};" done -# MODS_TO_LOAD="$VOLUME_HOME/mods/463939057" - if [ -n "$MODS_TO_LOAD" ]; then - SERVER_ARGS="${SERVER_ARGS} -mod=${MODS_TO_LOAD}" + SERVER_ARGS="${SERVER_ARGS} -mod=${MODS_TO_LOAD::-1}" fi @@ -84,4 +82,4 @@ echo "$SERVER_ARGS" # Start the server echo "Starting the server..." -/home/steam/server/arma3server ${SERVER_ARGS} +/home/steam/server/arma3server_x64 ${SERVER_ARGS}