diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-03 10:31:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-03 10:31:17 +0100 |
commit | 7c83dbeee30c8566b689edc1dc01a5773d487b9a (patch) | |
tree | d64f6c1788ee61720f1daeec928d67087c49e04a | |
parent | c4f50c620f788a864733c766d5a1794eb42532e2 (diff) |
add check for certutil and openssl
-rwxr-xr-x | src/service/gns/test_proxy.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/service/gns/test_proxy.sh b/src/service/gns/test_proxy.sh index bb63a436e..aa59504ee 100755 --- a/src/service/gns/test_proxy.sh +++ b/src/service/gns/test_proxy.sh @@ -1,5 +1,18 @@ #!/bin/bash # This file is in the public domain. + +if ! which certutil > /dev/null +then + echo "certutil required" + exit 77 +fi + +if ! which openssl > /dev/null +then + echo "certutil required" + exit 77 +fi + TEST_DOMAIN="www.test" GNUNET_TMP="$(gnunet-config -f -s PATHS -o GNUNET_TMP)" PROXY_CACERT="$(gnunet-config -f -c test_gns_proxy.conf -s gns-proxy -o PROXY_CACERT)" |