From ee309b095e819be300a241753c76245b639313ad Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 5 May 2017 19:15:18 -0400 Subject: [PATCH] Fix the unholy disaster that is steamcmd within containers. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This honestly took like 3 hours to debug and fix, and TBH its all because +app_update is not the same as update, and I didn’t notice I had mistyped at some point. Many keys were violently smashed. R.I.P. Keyboard, you were decent. :ghost: --- database/seeds/SourceServiceTableSeeder.php | 22 +++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/database/seeds/SourceServiceTableSeeder.php b/database/seeds/SourceServiceTableSeeder.php index 5130308e7..171aebecc 100644 --- a/database/seeds/SourceServiceTableSeeder.php +++ b/database/seeds/SourceServiceTableSeeder.php @@ -74,16 +74,21 @@ class SourceServiceTableSeeder extends Seeder # SRCDS Base Installation Script # # Server Files: /mnt/server -apt update -apt install curl +apt -y update +apt -y --no-install-recommends install curl lib32gcc1 ca-certificates cd /tmp curl -sSL -o steamcmd.tar.gz http://media.steampowered.com/installer/steamcmd_linux.tar.gz -mkdir /mnt/server/steamcmd +mkdir -p /mnt/server/steamcmd tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd cd /mnt/server/steamcmd +# SteamCMD fails otherwise for some reason, even running as root. +# This is changed at the end of the install process anyways. +chown -R root:root /mnt + +export HOME=/mnt/server ./steamcmd.sh +login anonymous +force_install_dir /mnt/server +app_update ${SRCDS_APPID} +quit mkdir -p /mnt/server/.steam/sdk32 @@ -145,13 +150,13 @@ EOF; # ARK: Installation Script # # Server Files: /mnt/server -apt update -apt install curl +apt -y update +apt -y --no-install-recommends install curl lib32gcc1 ca-certificates cd /tmp curl -sSL -o steamcmd.tar.gz http://media.steampowered.com/installer/steamcmd_linux.tar.gz -mkdir /mnt/server/steamcmd +mkdir -p /mnt/server/steamcmd mkdir -p /mnt/server/Engine/Binaries/ThirdParty/SteamCMD/Linux tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd @@ -159,6 +164,11 @@ tar -xzvf steamcmd.tar.gz -C /mnt/server/Engine/Binaries/ThirdParty/SteamCMD/Lin cd /mnt/server/steamcmd +# SteamCMD fails otherwise for some reason, even running as root. +# This is changed at the end of the install process anyways. +chown -R root:root /mnt + +export HOME=/mnt/server ./steamcmd.sh +login anonymous +force_install_dir /mnt/server +app_update 376030 +quit mkdir -p /mnt/server/.steam/sdk32