Created
March 31, 2024 23:41
-
-
Save alanfzf/71103351b56be6aa0989fc6a323ff235 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GAME_DIR="/home/steam/cs2/game/csgo" | |
SERVICE_NAME="cs2-server" | |
curl -Lo metamod.tar.gz https://mms.alliedmods.net/mmsdrop/2.0/mmsource-2.0.0-git1284-linux.tar.gz | |
curl -Lo sharp.zip https://github.com/roflmuffin/CounterStrikeSharp/releases/download/v202/counterstrikesharp-with-runtime-build-202-linux-696ecad.zip | |
tar -xvf metamod.tar.gz | |
unzip sharp.zip | |
docker compose cp addons "$SERVICE_NAME:$GAME_DIR" | |
docker compose exec -it "$SERVICE_NAME" sed -i '/Game_LowViolence/a \\t\t\tGame\tcsgo/addons/metamod' "$GAME_DIR/gameinfo.gi" | |
rm -rf metamod.tar.gz sharp.zip addons/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment