LINODEID is wrong. Manually specify domain name instead

This commit is contained in:
DeathByDenim 2022-02-06 14:54:40 -05:00
parent 94327c55c5
commit 33cfc98529
3 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,9 @@
### Deploy script for a game server running multiple open-source game servers
### This script is intended for Debian 11, but may work on other apt-based
### systems too
###
### Specify domain name:
### DOMAINNAME=example.com ./deploy.sh
set -e
@ -15,6 +18,7 @@ export unvanquished_version="0.52.1"
export xonotic_version="0.8.2"
export systemuser="onfoss"
export letsencryptemail="jarno@jarno.ca"
# Install what we need
apt update -y && apt full-upgrade -y
@ -59,6 +63,6 @@ firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent
firewall-cmd --reload
certbot -n --nginx -d ${LINODE_ID} -d www.${LINODE_ID} --agree-tos -m jarno@jarno.ca
certbot -n --nginx -d ${DOMAINNAME} -d www.${DOMAINNAME} --agree-tos -m "${letsencryptemail}"
cp -r "$(dirname "$0")"/website/* /var/www/html

View File

@ -16,7 +16,7 @@ sv_map dm3
sv_scorelimit 20
sv_timelimit 10
sv_gametype dm
sv_motd "HAVE FUN!\nTo change the gamemode you have to reload or change the map to apply the change.\n\n${LINODE_ID}"
sv_motd "HAVE FUN!\nTo change the gamemode you have to reload or change the map to apply the change.\n\n${DOMAINNAME}"
sv_max_clients 64
sv_spectator_slots 16

View File

@ -22,7 +22,7 @@ cat > ${systemuserhome}/unvanquished_home/config/unvanquished.cfg <<EOF
set server.private 1
set g_needpass 0
set sv_hostname "^NUnvanquished ^3onFOSS-LAN"
set g_motd "^2get news on ^5${LINODE_ID}"
set g_motd "^2get news on ^5${DOMAINNAME}"
set sv_allowdownload 0
set sv_maxclients 24
set timelimit 0