From 19e1f366c8f1eb6145d5eb7c36b9a4349306a4f9 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 15 Nov 2021 00:01:25 +0100 Subject: [PATCH] added source/meta mod --- start.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index d5f0a63..c900ed1 100755 --- a/start.sh +++ b/start.sh @@ -2,7 +2,20 @@ set -e -/home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir "$HOME/server" +app_update 222860 validate +quit +/home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir "$HOME/server" +app_update 222860 +quit + + +if [ ! -e "$HOME/server/left4dead2/addons/metamod.vdf" ]; then + echo "Installing Metamod" + curl https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1145-linux.tar.gz -o /tmp/metamod.tar.gz + tar -xf /tmp/metamod.tar.gz -C "$HOME/server/left4dead2" + rm /tmp/metamod.tar.gz + + echo "Install Sourcemod" + curl https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6524-linux.tar.gz -o /tmp/sourcemod.tar.gz + tar -xf /tmp/sourcemod.tar.gz -C "$HOME/server/left4dead2" + rm /tmp/sourcemod.tar.gz +fi echo -n "$MOTD_FILE_CONTENT" > "$HOME/server/left4dead2/motd.txt"