Skip to content

Commit cdbf5b0

Browse files
author
kishan
committed
bug 12262: Updated jasypt jar path
1 parent d24be5c commit cdbf5b0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/storage/secondary/cloud-install-sys-tmplt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ dbHost=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep 'db.cloud.host'
7474
dbUser=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep 'db.cloud.username' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
7575
if [ "$sflag" == "1" ]
7676
then
77-
encryptionJarPath="@JAVADIR@/cloud-jasypt-1.8.jar"
78-
echo $encryptionJarPath;
7977
encPassword=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep 'db.cloud.password' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'i | sed 's/^ENC(\(.*\))/\1/')
80-
dbPassword=(`java -classpath "$encryptionJarPath" org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh input=$encPassword password=$msKey verbose=false`)
78+
dbPassword=(`java -classpath /usr/share/java/cloud-jasypt-1.8.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh input=$encPassword password=$msKey verbose=false`)
8179
else
8280
dbPassword=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep 'db.cloud.password' | tail -n 1 | cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'i )
8381
fi

0 commit comments

Comments
 (0)