#!/bin/bash
# Collection of scripts to deploy a server hosting several open-source games
# Copyright (C) 2022 Jarno van der Kolk
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see .
set -e
if [ -e /lib/systemd/system/armagetronad-dedicated.service ]; then
systemctl stop armagetronad-dedicated
fi
apt install --assume-yes armagetronad-dedicated
# Override unit file to use console2web
mkdir -p /etc/systemd/system/armagetronad-dedicated.service.d
cat > /etc/systemd/system/armagetronad-dedicated.service.d/override.conf < /etc/armagetronad/server_info.cfg < to start!
SERVER_NAME onFOSS-LAN
EOF
cat > /etc/armagetronad/settings_custom.cfg < /etc/nginx/gameserver.d/armagetron.conf <