mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 14:47:09 +00:00
unbound-control-setup: check openssl
Before doing anything, check if openssl binary (which we will use) is available, and print a useful error message if it is not found.
This commit is contained in:
parent
f5a2160ba3
commit
faf3d358dc
@ -104,6 +104,10 @@ while getopts 'd:hr' arg; do
|
|||||||
done
|
done
|
||||||
shift $((OPTIND - 1))
|
shift $((OPTIND - 1))
|
||||||
|
|
||||||
|
if ! command -v openssl >/dev/null; then
|
||||||
|
echo "$0 requires openssl package to be installed to generate the keys." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "setup in directory $DESTDIR"
|
echo "setup in directory $DESTDIR"
|
||||||
cd "$DESTDIR"
|
cd "$DESTDIR"
|
||||||
|
Loading…
Reference in New Issue
Block a user