diff --git a/deploy.sh b/deploy.sh index eb1f579..657d1fb 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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 diff --git a/scripts/deploy_teeworlds.sh b/scripts/deploy_teeworlds.sh index 139f215..ef3d7cf 100755 --- a/scripts/deploy_teeworlds.sh +++ b/scripts/deploy_teeworlds.sh @@ -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 diff --git a/scripts/deploy_unvanquished.sh b/scripts/deploy_unvanquished.sh index 9cc9423..b358804 100755 --- a/scripts/deploy_unvanquished.sh +++ b/scripts/deploy_unvanquished.sh @@ -22,7 +22,7 @@ cat > ${systemuserhome}/unvanquished_home/config/unvanquished.cfg <