]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/infrastructure/refresh-tos.sh
Experimental terms of service syncing script and file
[xonotic/xonotic.git] / misc / infrastructure / refresh-tos.sh
1 #!/bin/sh
2
3 # Script to sync the "tos.txt" file on the web host with the version currently in git. 
4 # Run this as root from the /var/www/update.xonotic.org directory.
5
6 set -e
7
8 export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
9 cd /var/www/update.xonotic.org/HTML
10
11 rm -f tos.txt
12 wget -qO tos.txt "https://gitlab.com/xonotic/xonotic/-/raw/master/misc/infrastructure/tos.txt"