Skip to content

Commit ee309b0

Browse files
committed
Fix the unholy disaster that is steamcmd within containers.
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:
1 parent 9343ac7 commit ee309b0

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

database/seeds/SourceServiceTableSeeder.php

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,21 @@ private function addCoreOptions()
7474
# SRCDS Base Installation Script
7575
#
7676
# Server Files: /mnt/server
77-
apt update
78-
apt install curl
77+
apt -y update
78+
apt -y --no-install-recommends install curl lib32gcc1 ca-certificates
7979
8080
cd /tmp
8181
curl -sSL -o steamcmd.tar.gz http://media.steampowered.com/installer/steamcmd_linux.tar.gz
8282
83-
mkdir /mnt/server/steamcmd
83+
mkdir -p /mnt/server/steamcmd
8484
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
8585
cd /mnt/server/steamcmd
8686
87+
# SteamCMD fails otherwise for some reason, even running as root.
88+
# This is changed at the end of the install process anyways.
89+
chown -R root:root /mnt
90+
91+
export HOME=/mnt/server
8792
./steamcmd.sh +login anonymous +force_install_dir /mnt/server +app_update ${SRCDS_APPID} +quit
8893
8994
mkdir -p /mnt/server/.steam/sdk32
@@ -145,20 +150,25 @@ private function addCoreOptions()
145150
# ARK: Installation Script
146151
#
147152
# Server Files: /mnt/server
148-
apt update
149-
apt install curl
153+
apt -y update
154+
apt -y --no-install-recommends install curl lib32gcc1 ca-certificates
150155
151156
cd /tmp
152157
curl -sSL -o steamcmd.tar.gz http://media.steampowered.com/installer/steamcmd_linux.tar.gz
153158
154-
mkdir /mnt/server/steamcmd
159+
mkdir -p /mnt/server/steamcmd
155160
mkdir -p /mnt/server/Engine/Binaries/ThirdParty/SteamCMD/Linux
156161
157162
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
158163
tar -xzvf steamcmd.tar.gz -C /mnt/server/Engine/Binaries/ThirdParty/SteamCMD/Linux
159164
160165
cd /mnt/server/steamcmd
161166
167+
# SteamCMD fails otherwise for some reason, even running as root.
168+
# This is changed at the end of the install process anyways.
169+
chown -R root:root /mnt
170+
171+
export HOME=/mnt/server
162172
./steamcmd.sh +login anonymous +force_install_dir /mnt/server +app_update 376030 +quit
163173
164174
mkdir -p /mnt/server/.steam/sdk32

0 commit comments

Comments
 (0)