~ added / changed only commentary / log output

This commit is contained in:
Lucas Briese 2019-10-15 12:38:54 +02:00
parent f86f1150f0
commit a1c035a80a
4 changed files with 11 additions and 6 deletions

View File

@ -20,8 +20,9 @@ else
fi
if [ "$WORKSHOP_COLLECTION_ID" = "0" ] || [ "$WORKSHOP_COLLECTION_ID" = "" ] || [ "$WORKSHOP_AUTOLOAD" != "true" ]; then
echo "No auto workshop download"
echo "[forceWorkshopDownload.sh]No auto workshop download"
else
echo "[forceWorkshopDownload.sh]processing workshop collection ${WORKSHOP_COLLECTION_ID}"
touch "$LUA_FILE"
arr=$(wget -q -O - https://steamcommunity.com/sharedfiles/filedetails/?id="${WORKSHOP_COLLECTION_ID}" | tr '\n' ' ' | grep -Po '"workshopItem"[^"]+"https://steamcommunity.com/sharedfiles/filedetails/\?id=(\d+)' | grep -Po '\d\d\d+' )
str=""

View File

@ -10,7 +10,7 @@ set -o pipefail
cd "$STEAM_CMD"
mount='"mountcfg"'$'\n{\n'
if [ "$INSTALL_CSS" = "true" ]; then
echo "installing & mounting css"
echo "[installAndMountAddons.sh]installing & mounting css"
./steamcmd.sh +login anonymous +force_install_dir "$CSS_PATH" +app_update 232330 validate +quit
mount=${mount}' "cstrike" "'"${CSS_PATH}/cstrike"$'"\n'
if [ "$INSTALL_HL2" != "true" ]; then
@ -18,13 +18,13 @@ if [ "$INSTALL_CSS" = "true" ]; then
fi
fi
if [ "$INSTALL_HL2" = "true" ]; then
echo "installing & mounting hl2"
echo "[installAndMountAddons.sh]installing & mounting hl2"
./steamcmd.sh +login anonymous +force_install_dir "$HL2_PATH" +app_update 232370 validate +quit
mount=${mount}' "hl2" "'"${HL2_PATH}/hl2"$'"\n'
mount=${mount}' "hl2mp" "'"${HL2_PATH}/hl2mp"$'"\n'
fi
if [ "$INSTALL_TF2" = "true" ]; then
echo "installing & mounting tf2"
echo "[installAndMountAddons.sh]installing & mounting tf2"
./steamcmd.sh +login anonymous +force_install_dir "$TF2_PATH" +app_update 232250 validate +quit
mount=${mount}' "tf2" "'"${TF2_PATH}/tf"$'"\n'
if [ "$INSTALL_CSS" != "true" ] && [ "$INSTALL_HL2" != "true" ]; then
@ -32,7 +32,7 @@ if [ "$INSTALL_TF2" = "true" ]; then
fi
fi
if [ "$INSTALL_HLDM" = "true" ]; then
echo "installing & mounting hldm"
echo "[installAndMountAddons.sh]installing & mounting hldm"
./steamcmd.sh +login anonymous +force_install_dir "$HLDM_PATH" +app_update 255470 validate +quit
mount=${mount}' "hl1" "'"${HLDM_PATH}/hl1"$'"\n'
mount=${mount}' "hldm" "'"${HLDM_PATH}/hldm"$'"\n'

View File

@ -1,6 +1,7 @@
FROM debian:stretch-slim
# Const \\ Overwrite Env \\ Configs possible \\ Configs needed
# C.UTF-8 -> en_US.UTF-8
ENV STEAM_PATH="/home/steam" \
SERVER_PATH="/home/steam/serverfiles" \
STEAM_CMD="/home/steam/steamcmd" \

View File

@ -8,7 +8,7 @@ set -o errexit
set -o nounset
set -o pipefail
echo "starting entrypoint.sh"
echo "[entrypoint.sh]starting entrypoint.sh"
set -e
@ -19,12 +19,15 @@ set -e
# --- Install / Update ---
cd "$STEAM_PATH"
if [ -n "$SERVER_EXECUTABLE" ] && [ -e "${STEAM_PATH}/$SERVER_EXECUTABLE" ]; then
echo "[entrypoint.sh]updating..."
./"$SERVER_EXECUTABLE" update-lgsm
./"$SERVER_EXECUTABLE" update
else
echo "[entrypoint.sh]installing..."
bash linuxgsm.sh "$SERVER_GAME"
./"$SERVER_EXECUTABLE" auto-install
fi
echo "[entrypoint.sh]update / installation done!"
if [ -e "/home/prepareServer.sh" ]; then
cd /home