Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
95b847f6
Commit
95b847f6
authored
10 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-1464: Do not show password section of database description in console output. Better version.
SVN: 33361
parent
5b480da4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
installation/resource/installer/bin/backup-databases.sh
+3
-1
3 additions, 1 deletion
installation/resource/installer/bin/backup-databases.sh
with
3 additions
and
1 deletion
installation/resource/installer/bin/backup-databases.sh
+
3
−
1
View file @
95b847f6
...
...
@@ -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
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment