1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-24 19:22:07 +03:00

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

View File

@@ -14,11 +14,19 @@ LETSENCRYPT="${LETSENCRYPT:-$LEROOT/venv/bin/letsencrypt}"
function CleanupExit() {
echo control c, exiting tests...
if [ "$f" != "" ] ; then
sudo rm /etc/apache2/sites-{enabled,available}/"$f"
Cleanup
fi
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
trap CleanupExit INT
for f in *.conf ; do
@@ -41,11 +49,7 @@ for f in *.conf ; do
echo
FAILS=`expr $FAILS + 1`
fi
if [ "$APPEND_APACHECONF" = "" ] ; then
sudo rm /etc/apache2/sites-{enabled,available}/"$f"
else
sudo mv "$TMP" "$APPEND_APACHECONF"
fi
Cleanup
done
if [ "$FAILS" -ne 0 ] ; then
exit 1

View File

@@ -1,5 +1,4 @@
Modules required to parse these conf files:
# Modules required to parse these conf files:
ssl
rewrite
macro