From 86627db5f1735568270a11a13cd1dfbe34dd8943 Mon Sep 17 00:00:00 2001 From: DeathByDenim Date: Sun, 26 Jun 2022 15:47:34 -0400 Subject: [PATCH] Added Super Tux Party game server --- deploy.sh | 1 + scripts/deploy_supertuxparty.sh | 34 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 scripts/deploy_supertuxparty.sh diff --git a/deploy.sh b/deploy.sh index 1b229f5..0e11b31 100755 --- a/deploy.sh +++ b/deploy.sh @@ -84,6 +84,7 @@ cp console2web/console2web.py /usr/bin/console2web "$(dirname "$0")"/scripts/deploy_xonotic-br.sh "$(dirname "$0")"/scripts/deploy_armagetron_advanced.sh "$(dirname "$0")"/scripts/deploy_soldat.sh +"$(dirname "$0")"/scripts/deploy_supertuxparty.sh # Apply all pending firewall rules. NGINX shouldn't have to be restarted, but it seems to help. firewall-cmd --reload diff --git a/scripts/deploy_supertuxparty.sh b/scripts/deploy_supertuxparty.sh new file mode 100755 index 0000000..804242e --- /dev/null +++ b/scripts/deploy_supertuxparty.sh @@ -0,0 +1,34 @@ +#!/bin/bash +set -e + +if [ -e /etc/systemd/system/supertuxparty.service ]; then + systemctl stop supertuxparty +fi + +# Install Lix +mkdir -p /opt/supertuxparty +curl 'https://supertux.party/download/latest/server.zip' > ${TMPDIR:/tmp}/server.zip +unzip -d /opt/supertuxparty ${TMPDIR:/tmp}/server.zip +rm ${TMPDIR:/tmp}/server.zip + +# Create SystemD unit +cat > /etc/systemd/system/supertuxparty.service <