diff --git a/deploy.sh b/deploy.sh index 3f2e25d..5262bfe 100755 --- a/deploy.sh +++ b/deploy.sh @@ -77,6 +77,7 @@ cp console2web/console2web.py /usr/bin/console2web "$(dirname "$0")"/scripts/deploy_teeworlds.sh "$(dirname "$0")"/scripts/deploy_unvanquished.sh "$(dirname "$0")"/scripts/deploy_xonotic.sh +"$(dirname "$0")"/scripts/deploy_xonotic-br.sh "$(dirname "$0")"/scripts/deploy_armagetron_advanced.sh echo diff --git a/scripts/deploy_xonotic-br.sh b/scripts/deploy_xonotic-br.sh new file mode 100755 index 0000000..a725c61 --- /dev/null +++ b/scripts/deploy_xonotic-br.sh @@ -0,0 +1,72 @@ +#!/bin/bash +set -e + +if [ -e /etc/systemd/system/xonotic-br.service ]; then + systemctl stop xonotic-br +fi + +apt install autoconf automake build-essential curl git libtool libgmp-dev \ + libjpeg62-turbo-dev libsdl2-dev libxpm-dev xserver-xorg-dev \ + zlib1g-dev unzip zip + +# Xonotic Battle Royale branch +xonotic_directory="/opt/xonotic-br" +mkdir -p "${xonotic_directory}" +git clone https://gitlab.com/xonotic/xonotic.git ${xonotic_directory} +cd ${xonotic_directory} +./all update -l best +./all checkout Juhu/battle-royale +./all compile -r dedicated + +mkdir -p ${systemuserhome}/xonotic-br/data +chown -R ${systemuser}: ${systemuserhome}/xonotic-br + +cat > ${systemuserhome}/xonotic-br/data/server.cfg < /etc/systemd/system/xonotic-br.service < /etc/nginx/gameserver.d/xonotic.conf < /etc/systemd/system/xonotic.service <