Skip to content

Commit 6492532

Browse files
committed
steamcmd force_install_dir
1 parent d8890c2 commit 6492532

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ RUN apt-get update && \
4444
install git git-lfs \
4545
&& apt-get clean \
4646
&& rm -rf /var/lib/apt/lists/*
47-
RUN su steam -c "/home/steam/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType linux +@sSteamCmdForcePlatformBitness 64 +login anonymous +app_update 1007 validate +quit"
4847

4948
# install supercronic
5049
ARG TARGETARCH

scripts/helper_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ IsInstalled() {
2222
return 1
2323
}
2424

25+
InstallSteamapp() {
26+
/home/steam/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType linux +@sSteamCmdForcePlatformBitness 64 +force_install_dir "$DATA_DIR/Steam" +login anonymous +app_update 1007 validate +quit
27+
}
28+
2529
# Returns 0 if Update Required
2630
# Returns 1 if Update NOT Required
2731
UpdateRequired() {

scripts/start.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if [ -n "$TARGET_COMMIT_ID" ] && ! IsValidCommitID "$TARGET_COMMIT_ID"; then
2929
exit 1
3030
fi
3131

32+
LogAction "Check & Update steamapp"
33+
InstallSteamapp
34+
3235
IsInstalled
3336
ServerInstalled=$?
3437
if [ "$ServerInstalled" == 1 ]; then

0 commit comments

Comments
 (0)