Add CTF mod for Minetest

This commit is contained in:
DeathByDenim 2023-12-22 16:53:47 -05:00
parent c6636ef834
commit 19bfb4303a
Signed by: DeathByDenim
GPG Key ID: 89185F675E0AB7D5
1 changed files with 7 additions and 0 deletions

View File

@ -41,10 +41,17 @@ cd -
rm -rf ${TMPDIR:-/tmp}/minetest-build
sudo -u ${systemuser} mkdir -p /home/${systemuser}/.minetest/games
# Install Blockbomber
curl --location https://content.minetest.net/packages/MisterE/blockbomber/releases/11576/download/ > ${TMPDIR:-/tmp}/blockbomber.zip
sudo -u ${systemuser} unzip -o -d /home/${systemuser}/.minetest/games "${TMPDIR:-/tmp}"/blockbomber.zip
rm -f "${TMPDIR:-/tmp}/blockbomber.zip"
# Install Capture the flag
curl --location https://content.minetest.net/packages/rubenwardy/capturetheflag/releases/22302/download/ > ${TMPDIR:-/tmp}/capturetheflag.zip
sudo -u ${systemuser} unzip -o -d /home/${systemuser}/.minetest/games "${TMPDIR:-/tmp}"/capturetheflag.zip
rm -f "${TMPDIR:-/tmp}/capturetheflag.zip"
cat > /etc/systemd/system/minetest.service <<EOF
[Unit]
Description=Minetest server