Prep for testfarming.

This commit is contained in:
Peter Eckersley
2015-12-16 19:41:35 -08:00
parent bf764e4852
commit 9013fecc9c
2 changed files with 11 additions and 8 deletions
+10 -6
View File
@@ -14,11 +14,19 @@ LETSENCRYPT="${LETSENCRYPT:-$LEROOT/venv/bin/letsencrypt}"
function CleanupExit() { function CleanupExit() {
echo control c, exiting tests... echo control c, exiting tests...
if [ "$f" != "" ] ; then if [ "$f" != "" ] ; then
sudo rm /etc/apache2/sites-{enabled,available}/"$f" Cleanup
fi fi
exit 1 exit 1
} }
function Cleanup() {
if [ "$APPEND_APACHECONF" = "" ] ; then
sudo rm /etc/apache2/sites-{enabled,available}/"$f"
else
sudo mv "$TMP" "$APPEND_APACHECONF"
fi
}
FAILS=0 FAILS=0
trap CleanupExit INT trap CleanupExit INT
for f in *.conf ; do for f in *.conf ; do
@@ -41,11 +49,7 @@ for f in *.conf ; do
echo echo
FAILS=`expr $FAILS + 1` FAILS=`expr $FAILS + 1`
fi fi
if [ "$APPEND_APACHECONF" = "" ] ; then Cleanup
sudo rm /etc/apache2/sites-{enabled,available}/"$f"
else
sudo mv "$TMP" "$APPEND_APACHECONF"
fi
done done
if [ "$FAILS" -ne 0 ] ; then if [ "$FAILS" -ne 0 ] ; then
exit 1 exit 1
@@ -1,5 +1,4 @@
Modules required to parse these conf files: # Modules required to parse these conf files:
ssl ssl
rewrite rewrite
macro macro