LINODEID is wrong. Manually specify domain name instead
This commit is contained in:
parent
94327c55c5
commit
33cfc98529
|
@ -3,6 +3,9 @@
|
||||||
### Deploy script for a game server running multiple open-source game servers
|
### 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
|
### This script is intended for Debian 11, but may work on other apt-based
|
||||||
### systems too
|
### systems too
|
||||||
|
###
|
||||||
|
### Specify domain name:
|
||||||
|
### DOMAINNAME=example.com ./deploy.sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -15,6 +18,7 @@ export unvanquished_version="0.52.1"
|
||||||
export xonotic_version="0.8.2"
|
export xonotic_version="0.8.2"
|
||||||
|
|
||||||
export systemuser="onfoss"
|
export systemuser="onfoss"
|
||||||
|
export letsencryptemail="jarno@jarno.ca"
|
||||||
|
|
||||||
# Install what we need
|
# Install what we need
|
||||||
apt update -y && apt full-upgrade -y
|
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 --zone=public --add-service=https --permanent
|
||||||
firewall-cmd --reload
|
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
|
cp -r "$(dirname "$0")"/website/* /var/www/html
|
||||||
|
|
|
@ -16,7 +16,7 @@ sv_map dm3
|
||||||
sv_scorelimit 20
|
sv_scorelimit 20
|
||||||
sv_timelimit 10
|
sv_timelimit 10
|
||||||
sv_gametype dm
|
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_max_clients 64
|
||||||
sv_spectator_slots 16
|
sv_spectator_slots 16
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ cat > ${systemuserhome}/unvanquished_home/config/unvanquished.cfg <<EOF
|
||||||
set server.private 1
|
set server.private 1
|
||||||
set g_needpass 0
|
set g_needpass 0
|
||||||
set sv_hostname "^NUnvanquished ^3onFOSS-LAN"
|
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_allowdownload 0
|
||||||
set sv_maxclients 24
|
set sv_maxclients 24
|
||||||
set timelimit 0
|
set timelimit 0
|
||||||
|
|
Reference in New Issue