#!/bin/bash set -e if [ -e /etc/systemd/system/xonotic-br.service ]; then systemctl stop xonotic-br fi apt install --assume-yes 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 <