From f051be86f7647edb11bc53200a760b1449a31aad Mon Sep 17 00:00:00 2001 From: sreenaths Date: Thu, 19 Oct 2023 23:34:28 -0700 Subject: [PATCH] Support custom jceks --- tools/container/hue/hueconf/altscript.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/container/hue/hueconf/altscript.sh b/tools/container/hue/hueconf/altscript.sh index ac045b5e1df..aba378f00a1 100755 --- a/tools/container/hue/hueconf/altscript.sh +++ b/tools/container/hue/hueconf/altscript.sh @@ -6,4 +6,9 @@ if [ "${ALIAS}" = "" ]; then exit 1 fi -exec /usr/bin/java -cp /etc/hue/conf/security-7.2.3.jar com.cloudera.enterprise.crypto.JceksPasswordExtractor /jceks/secrets.jceks "${ALIAS}" +JCEKS_PATH=$2 +if [ "${JCEKS_PATH}" = "" ]; then + JCEKS_PATH="/jceks/secrets.jceks" +fi + +exec /usr/bin/java -cp /etc/hue/conf/security-7.2.3.jar com.cloudera.enterprise.crypto.JceksPasswordExtractor "${JCEKS_PATH}" "${ALIAS}"