Skip to content
Snippets Groups Projects
Commit 95b847f6 authored by felmer's avatar felmer
Browse files

SSDM-1464: Do not show password section of database description in console output. Better version.

SVN: 33361
parent 5b480da4
No related branches found
No related tags found
No related merge requests found
......@@ -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`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment