]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/infrastructure/refresh-tos.sh
Experimental terms of service syncing script and file
[xonotic/xonotic.git] / misc / infrastructure / refresh-tos.sh
diff --git a/misc/infrastructure/refresh-tos.sh b/misc/infrastructure/refresh-tos.sh
new file mode 100755 (executable)
index 0000000..32ec10c
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Script to sync the "tos.txt" file on the web host with the version currently in git. 
+# Run this as root from the /var/www/update.xonotic.org directory.
+
+set -e
+
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
+cd /var/www/update.xonotic.org/HTML
+
+rm -f tos.txt
+wget -qO tos.txt "https://gitlab.com/xonotic/xonotic/-/raw/master/misc/infrastructure/tos.txt"