mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 08:08:00 +02:00
Prep for testfarming.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user