~ added / changed only commentary / log output
This commit is contained in:
parent
f86f1150f0
commit
a1c035a80a
@ -20,8 +20,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$WORKSHOP_COLLECTION_ID" = "0" ] || [ "$WORKSHOP_COLLECTION_ID" = "" ] || [ "$WORKSHOP_AUTOLOAD" != "true" ]; then
|
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
|
else
|
||||||
|
echo "[forceWorkshopDownload.sh]processing workshop collection ${WORKSHOP_COLLECTION_ID}"
|
||||||
touch "$LUA_FILE"
|
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+' )
|
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=""
|
str=""
|
||||||
|
@ -10,7 +10,7 @@ set -o pipefail
|
|||||||
cd "$STEAM_CMD"
|
cd "$STEAM_CMD"
|
||||||
mount='"mountcfg"'$'\n{\n'
|
mount='"mountcfg"'$'\n{\n'
|
||||||
if [ "$INSTALL_CSS" = "true" ]; then
|
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
|
./steamcmd.sh +login anonymous +force_install_dir "$CSS_PATH" +app_update 232330 validate +quit
|
||||||
mount=${mount}' "cstrike" "'"${CSS_PATH}/cstrike"$'"\n'
|
mount=${mount}' "cstrike" "'"${CSS_PATH}/cstrike"$'"\n'
|
||||||
if [ "$INSTALL_HL2" != "true" ]; then
|
if [ "$INSTALL_HL2" != "true" ]; then
|
||||||
@ -18,13 +18,13 @@ if [ "$INSTALL_CSS" = "true" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$INSTALL_HL2" = "true" ]; then
|
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
|
./steamcmd.sh +login anonymous +force_install_dir "$HL2_PATH" +app_update 232370 validate +quit
|
||||||
mount=${mount}' "hl2" "'"${HL2_PATH}/hl2"$'"\n'
|
mount=${mount}' "hl2" "'"${HL2_PATH}/hl2"$'"\n'
|
||||||
mount=${mount}' "hl2mp" "'"${HL2_PATH}/hl2mp"$'"\n'
|
mount=${mount}' "hl2mp" "'"${HL2_PATH}/hl2mp"$'"\n'
|
||||||
fi
|
fi
|
||||||
if [ "$INSTALL_TF2" = "true" ]; then
|
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
|
./steamcmd.sh +login anonymous +force_install_dir "$TF2_PATH" +app_update 232250 validate +quit
|
||||||
mount=${mount}' "tf2" "'"${TF2_PATH}/tf"$'"\n'
|
mount=${mount}' "tf2" "'"${TF2_PATH}/tf"$'"\n'
|
||||||
if [ "$INSTALL_CSS" != "true" ] && [ "$INSTALL_HL2" != "true" ]; then
|
if [ "$INSTALL_CSS" != "true" ] && [ "$INSTALL_HL2" != "true" ]; then
|
||||||
@ -32,7 +32,7 @@ if [ "$INSTALL_TF2" = "true" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$INSTALL_HLDM" = "true" ]; then
|
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
|
./steamcmd.sh +login anonymous +force_install_dir "$HLDM_PATH" +app_update 255470 validate +quit
|
||||||
mount=${mount}' "hl1" "'"${HLDM_PATH}/hl1"$'"\n'
|
mount=${mount}' "hl1" "'"${HLDM_PATH}/hl1"$'"\n'
|
||||||
mount=${mount}' "hldm" "'"${HLDM_PATH}/hldm"$'"\n'
|
mount=${mount}' "hldm" "'"${HLDM_PATH}/hldm"$'"\n'
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
FROM debian:stretch-slim
|
FROM debian:stretch-slim
|
||||||
|
|
||||||
# Const \\ Overwrite Env \\ Configs possible \\ Configs needed
|
# Const \\ Overwrite Env \\ Configs possible \\ Configs needed
|
||||||
|
# C.UTF-8 -> en_US.UTF-8
|
||||||
ENV STEAM_PATH="/home/steam" \
|
ENV STEAM_PATH="/home/steam" \
|
||||||
SERVER_PATH="/home/steam/serverfiles" \
|
SERVER_PATH="/home/steam/serverfiles" \
|
||||||
STEAM_CMD="/home/steam/steamcmd" \
|
STEAM_CMD="/home/steam/steamcmd" \
|
||||||
|
@ -8,7 +8,7 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
echo "starting entrypoint.sh"
|
echo "[entrypoint.sh]starting entrypoint.sh"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
||||||
@ -19,12 +19,15 @@ set -e
|
|||||||
# --- Install / Update ---
|
# --- Install / Update ---
|
||||||
cd "$STEAM_PATH"
|
cd "$STEAM_PATH"
|
||||||
if [ -n "$SERVER_EXECUTABLE" ] && [ -e "${STEAM_PATH}/$SERVER_EXECUTABLE" ]; then
|
if [ -n "$SERVER_EXECUTABLE" ] && [ -e "${STEAM_PATH}/$SERVER_EXECUTABLE" ]; then
|
||||||
|
echo "[entrypoint.sh]updating..."
|
||||||
./"$SERVER_EXECUTABLE" update-lgsm
|
./"$SERVER_EXECUTABLE" update-lgsm
|
||||||
./"$SERVER_EXECUTABLE" update
|
./"$SERVER_EXECUTABLE" update
|
||||||
else
|
else
|
||||||
|
echo "[entrypoint.sh]installing..."
|
||||||
bash linuxgsm.sh "$SERVER_GAME"
|
bash linuxgsm.sh "$SERVER_GAME"
|
||||||
./"$SERVER_EXECUTABLE" auto-install
|
./"$SERVER_EXECUTABLE" auto-install
|
||||||
fi
|
fi
|
||||||
|
echo "[entrypoint.sh]update / installation done!"
|
||||||
|
|
||||||
if [ -e "/home/prepareServer.sh" ]; then
|
if [ -e "/home/prepareServer.sh" ]; then
|
||||||
cd /home
|
cd /home
|
||||||
|
Loading…
Reference in New Issue
Block a user