Added UFO:AI
This commit is contained in:
parent
b1e35199c3
commit
8a396e383b
|
@ -103,6 +103,7 @@ cp console2web/console2web.py /usr/bin/console2web
|
||||||
"$(dirname "$0")"/scripts/deploy_armagetron_advanced.sh
|
"$(dirname "$0")"/scripts/deploy_armagetron_advanced.sh
|
||||||
"$(dirname "$0")"/scripts/deploy_opensoldat.sh
|
"$(dirname "$0")"/scripts/deploy_opensoldat.sh
|
||||||
"$(dirname "$0")"/scripts/deploy_supertuxparty.sh
|
"$(dirname "$0")"/scripts/deploy_supertuxparty.sh
|
||||||
|
"$(dirname "$0")"/scripts/deploy_ufoai.sh
|
||||||
|
|
||||||
# Apply all pending firewall rules. NGINX shouldn't have to be restarted, but it seems to help.
|
# Apply all pending firewall rules. NGINX shouldn't have to be restarted, but it seems to help.
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
#!/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 <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ -e /lib/systemd/system/ufoai-server.service ]; then
|
||||||
|
systemctl stop ufoai-server
|
||||||
|
fi
|
||||||
|
|
||||||
|
apt install --assume-yes ufoai-server
|
||||||
|
|
||||||
|
echo "set rcon_password ${systempassword}" >> /etc/ufoai-server/server.cfg
|
||||||
|
sed -i -e 's/set sv_hostname.*/set sv_hostname "onFOSS-LAN"/' /etc/ufoai-server/server.cfg
|
||||||
|
|
||||||
|
systemctl restart ufoai-server.service
|
||||||
|
|
||||||
|
# Add firewall rules
|
||||||
|
firewall-cmd --zone=public --add-port=27910/tcp --permanent
|
Reference in New Issue