Add SteamCMD platform type flag to fix installation

- Added +@sSteamCmdForcePlatformType linux to install and update scripts
- Added retry logic for failed installations
This commit is contained in:
Vish
2026-01-19 07:05:59 +00:00
parent 99868c9961
commit dd7759027d
2 changed files with 14 additions and 2 deletions

View File

@@ -119,11 +119,22 @@ install_gmod_server() {
cd "$STEAMCMD_DIR"
./steamcmd.sh +force_install_dir "$SERVER_DIR" \
# Force Linux platform and install
./steamcmd.sh +@sSteamCmdForcePlatformType linux \
+force_install_dir "$SERVER_DIR" \
+login anonymous \
+app_update 4020 validate \
+quit
if [[ $? -ne 0 ]]; then
log_warning "First attempt failed, retrying..."
./steamcmd.sh +@sSteamCmdForcePlatformType linux \
+force_install_dir "$SERVER_DIR" \
+login anonymous \
+app_update 4020 \
+quit
fi
log_success "Garry's Mod server installed."
}