Polishing.

Ensure work directory creation in start script.

See gh-674.
This commit is contained in:
Mark Paluch
2022-01-05 10:21:13 +01:00
parent 26a77a2199
commit 35ad8987de
2 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ KEYSTORE_FILE=work/keystore.jks
CLIENT_CERT_KEYSTORE=work/client-cert.jks
RUNS_ON_WINDOWS_OS=false
if [[ -n $WSL_DISTRO_NAME ]]; then
if [[ -n ${WSL_DISTRO_NAME} ]]; then
RUNS_ON_WINDOWS_OS=true
echo "[INFO] Script runs on Windows Subsystem for Linux"
fi
@@ -31,7 +31,7 @@ fi
KEYTOOL=keytool
if [ ! -x "${KEYTOOL}" ] ; then
if [ RUNS_ON_WINDOWS_OS ] ; then
if ${RUNS_ON_WINDOWS_OS} ; then
KEYTOOL=${JAVA_HOME}/bin/keytool.exe
else
KEYTOOL=${JAVA_HOME}/bin/keytool
@@ -39,7 +39,7 @@ if [ ! -x "${KEYTOOL}" ] ; then
fi
if [ ! -x "${KEYTOOL}" ] ; then
echo "[ERROR] No keytool in PATH/JAVA_HOME"
echo "[ERROR] No keytool in PATH/JAVA_HOME: ${KEYTOOL}"
exit 1
fi

View File

@@ -10,6 +10,7 @@ BASEDIR=`dirname $0`/../../..
pkill vault
mkdir -p ${BASEDIR}/download
mkdir -p ${BASEDIR}/work
${BASEDIR}/src/test/bash/install_vault.sh
${BASEDIR}/src/test/bash/create_certificates.sh
${BASEDIR}/src/test/bash/env.sh