bx509: do not test bx509d if not built

This commit is contained in:
Nicolas Williams
2019-12-05 17:37:19 -06:00
parent b5c158d9f7
commit 61452235ad

View File

@@ -257,6 +257,11 @@ if ! which curl; then
exit 0 exit 0
fi fi
if ! test -x ${objdir}/../../kdc/bx509d; then
echo "Configured w/o libmicrohttpd -- not testing bx509d"
exit 0
fi
echo "Starting bx509d" echo "Starting bx509d"
${bx509d} --reverse-proxied -H $H --cert=${objdir}/bx509.pem -t -p $port --daemon || ${bx509d} --reverse-proxied -H $H --cert=${objdir}/bx509.pem -t -p $port --daemon ||
{ echo "bx509 failed to start"; exit 2; } { echo "bx509 failed to start"; exit 2; }