File tree Expand file tree Collapse file tree
scripts/storage/secondary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,10 +74,8 @@ dbHost=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep 'db.cloud.host'
7474dbUser=$( sed ' /^\#/d' /etc/cloud/management/db.properties | grep ' db.cloud.username' | tail -n 1 | cut -d " =" -f2- | sed ' s/^[[:space:]]*//;s/[[:space:]]*$//' )
7575if [ " $sflag " == " 1" ]
7676then
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` )
8179else
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 )
8381fi
You can’t perform that action at this time.
0 commit comments