Skip to content

Commit

Permalink
MapR [SPARK-1116] manageSSLKeys.sh script uses hard-coded path '/home' (
Browse files Browse the repository at this point in the history
  • Loading branch information
d-popkov authored and ekrivokonmapr committed Nov 6, 2023
1 parent 4e27f7a commit b24d8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/manageSSLKeys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CURRENT_USER=$(id -u -n)
set -x

MAPR_HOME=${MAPR_HOME:=/opt/mapr}
INSTALL_DIR=/home/$CURRENT_USER/__spark-internal__/security_keys
INSTALL_DIR=$HOME/__spark-internal__/security_keys
MAPRFS_DIR=/apps/spark/__$CURRENT_USER-spark-internal__/security_keys
BC_JAR="/opt/mapr/lib/bc-fips-1.0.2.1.jar"

Expand Down Expand Up @@ -104,7 +104,7 @@ function confirmNotThere() {
if ! [[ $checkKeyResult =~ $errorSubstr ]]; then
exit 0
fi
rm -rf /home/$USER/__spark-internal__
rm -rf $HOME/__spark-internal__
mkdir -p ${INSTALL_DIR}
fi
}
Expand Down

0 comments on commit b24d8c7

Please sign in to comment.