fixed mod param

This commit is contained in:
Djeeberjr 2022-08-28 14:46:41 +02:00
parent 9bc59e83b1
commit 72ed93825e

View File

@ -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}