From 95b847f6fb4f4fb0a904c782701a36cb12f39e8e Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Thu, 29 Jan 2015 14:57:40 +0000 Subject: [PATCH] SSDM-1464: Do not show password section of database description in console output. Better version. SVN: 33361 --- installation/resource/installer/bin/backup-databases.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installation/resource/installer/bin/backup-databases.sh b/installation/resource/installer/bin/backup-databases.sh index b0b807709ef..4413215fb89 100755 --- a/installation/resource/installer/bin/backup-databases.sh +++ b/installation/resource/installer/bin/backup-databases.sh @@ -68,7 +68,9 @@ function backupDatabase() { return fi - echo "Database description: ${DB_PROPS%*password=*}host=${DB_PROPS#*host=*}" + echo -n "Database description: " + # do not show password section of database description + echo $DB_PROPS|awk -F ';' '{print $1";"$2";"$4}' local hostAndPort=$(getProperty $DB_PROPS "host" "localhost") local host=${hostAndPort%:*} local port=`if [ "${hostAndPort#*:}" == "$host" ]; then echo 5432; else echo ${hostAndPort#*:}; fi` -- GitLab