Added siverten/ game server images, a tor image and a utility script

This commit is contained in:
2021-09-14 17:13:40 +02:00
parent 87d21ac86a
commit 0f353654eb
15 changed files with 415 additions and 8 deletions

15
siverten/tshock/install.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# tshock install script for docker container
get_latest() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
mkdir /world /config /logs /plugins /tshock
cd /tshock
[ "$TSHOCK_VERSION" == "latest" ] && TSHOCK_VERSION=`get_latest "Pryaxis/TShock"`
wget https://github.com/Pryaxis/TShock/releases/download/$TSHOCK_VERSION/TShock${TSHOCK_VERSION//v}_Terraria1.4.2.3.zip
unzip *.zip
rm *.zip
chmod +x /tshock/TerrariaServer.exe
chmod +x /start