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.
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
11 wget -qO tos.txt.new "https://gitlab.com/xonotic/xonotic/-/raw/master/misc/infrastructure/tos.txt"
13 if [ `wc -l tos.txt.new | awk '{print $1}'` -ge "2" ]; then
14 echo "tos.txt update succeeded."
15 mv tos.txt.new tos.txt
17 echo "tos.txt updating failed. Please debug."