forked from DeathByDenim/gameserver
Deploy Armagetron Advanced
This commit is contained in:
parent
9a038519b1
commit
ecc2874033
|
@ -73,6 +73,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_armagetron_advanced.sh
|
||||
|
||||
# Deploy web interface stuff
|
||||
"$(dirname "$0")"/scripts/deploy_monitoring.sh
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ -e /lib/systemd/system/armagetronad-dedicated.service ]; then
|
||||
systemctl stop armagetronad-dedicated
|
||||
fi
|
||||
|
||||
apt install armagetronad-dedicated
|
||||
|
||||
# Override unit file to use console2web
|
||||
cat > /etc/systemd/system/armagetronad-dedicated.service.d/override.conf <<EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/console2web -p 62551 /usr/games/armagetronad-dedicated.real --datadir /usr/share/games/armagetronad --configdir /etc/armagetronad --userdatadir /var/games/armagetronad
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
|
||||
cat > /etc/armagetronad/server_info.cfg <<EOF
|
||||
MESSAGE_OF_DAY Welcome to onFOSS-LAN\\nTry to survive as long as possible!\\nNote that you can brake by pressing the down arrow key\\nHugging walls will give you a speed boost\\n\\nPress <Enter> to start!
|
||||
SERVER_NAME onFOSS-LAN
|
||||
EOF
|
||||
|
||||
cat > /etc/armagetronad/settings_custom.cfg <<EOF
|
||||
TALK_TO_MASTER 0
|
||||
EOF
|
||||
|
||||
systemctl restart armagetronad-dedicated.service
|
||||
|
||||
# Add firewall rules
|
||||
firewall-cmd --zone=public --add-port=4534/udp --permanent
|
Loading…
Reference in New Issue