[Debian-live-changes] r1938 - dists/trunk/live-webhelper/scripts

daniel at alioth.debian.org daniel at alioth.debian.org
Sun Jun 3 06:26:57 UTC 2007


Author: daniel
Date: 2007-06-03 06:26:57 +0000 (Sun, 03 Jun 2007)
New Revision: 1938

Modified:
   dists/trunk/live-webhelper/scripts/cgi
Log:


Modified: dists/trunk/live-webhelper/scripts/cgi
===================================================================
--- dists/trunk/live-webhelper/scripts/cgi	2007-06-03 06:18:22 UTC (rev 1937)
+++ dists/trunk/live-webhelper/scripts/cgi	2007-06-03 06:26:57 UTC (rev 1938)
@@ -105,6 +105,21 @@
 	# FIXME: filter invalid options
 	unset QUERY_STRING
 
+	if [ -z "${EMAIL}" ]
+	then
+		echo "<h2><div style='color: red;'>Error: No email address specified.</div></h2>"
+
+		sed -e "s#MIRROR_BOOTSTRAP_SECURITY#${MIRROR_BOOTSTRAP_SECURITY}#" \
+		    -e "s#MIRROR_BOOTSTRAP#${MIRROR_BOOTSTRAP}#" \
+		    -e "s#MIRROR_BINARY_SECURITY#${MIRROR_BINARY_SECURITY}#" \
+		    -e "s#MIRROR_BINARY#${MIRROR_BINARY}#" \
+		    -e "s/VERSION/${VERSION}/" \
+		    -e "s/DATE/`date +%Y%m%d-%H:%M`/" \
+		"${TEMPLATES}"/form.html
+
+		exit
+	fi
+
 	# Getting build identifier
 	BUILD="`date +%Y%m%d.%H%M%S.%N`"
 




More information about the Debian-live-changes mailing list