summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-22 17:27:56 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-22 17:27:56 +0000
commitf6713cf1ea4ed1b3c4844fa8e74187043986b2b6 (patch)
treeda4583bdf8186643828ff8cf6c1b88c654ad8070
parent323b7225e6173544de255541087df8bd22ad1644 (diff)
add check for certtool
-rw-r--r--src/gns/gnunet-gns-proxy-setup-ca7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns-proxy-setup-ca b/src/gns/gnunet-gns-proxy-setup-ca
index d0b07887b..5686e37f7 100644
--- a/src/gns/gnunet-gns-proxy-setup-ca
+++ b/src/gns/gnunet-gns-proxy-setup-ca
@@ -2,8 +2,13 @@
# This shell script will generate an X509 certificate for your gnunet-gns-proxy
# and install it (for both GNUnet and your browser).
#
-echo "Generating CA"
+if ! which certtool > /dev/null
+then
+ echo "'certtool' command not found. Please install it."
+ exit 1
+fi
+echo "Generating CA"
options=''
while getopts "c:" opt; do
case $opt in