Commit c9473b03 authored by Sebastien Gardoll's avatar Sebastien Gardoll
Browse files

check keytool

parent 71770d9b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ esgf_ver="${DEFAULT_VERSION}"
# verify env variables are set
if [ "${ESGF_HOSTNAME}" = "" ] || [ "${ESGF_CONFIG}" = "" ];
then
   echo "All env variables: ESGF_HOSTNAME and ESGF_CONFIG must be set  "
   echo "All env variables: ESGF_HOSTNAME and ESGF_CONFIG must be set. Abort."
   exit -1
else
   echo "Using ESGF_HOSTNAME=$ESGF_HOSTNAME"
@@ -33,6 +33,13 @@ else
   echo "Using ESGF_IMAGES_HUB=$images_hub"
fi

# verify if keytool is in the PATH
which keytool > /dev/null
if [ ${?} -ne 0 ]; then
   echo "Missing keytool. Install and/or add it to the PATH. Abort."
   exit -1
fi

# initialize the node configuration directory
echo ""
echo "Initializing the node configuration directory with default content..."