Skip to content
Snippets Groups Projects
Commit 3e93748c authored by felmer's avatar felmer
Browse files

SSDM-360: Tiny refactoring in function backupDatabase(). Cooment for function...

SSDM-360: Tiny refactoring in function backupDatabase(). Cooment for function databaseExist() updated.

SVN: 31633
parent 27be7740
No related branches found
No related tags found
No related merge requests found
......@@ -61,10 +61,8 @@ function backupDatabase() {
return
fi
local user_name_for_check=$(getProperty $DB_PROPS "username")
if [ $(databaseExist $database $user_name_for_check) == "TRUE" ]; then
username=$(getProperty $DB_PROPS "username")
username=$(getProperty $DB_PROPS "username")
if [ $(databaseExist $database $username) == "TRUE" ]; then
local dumpDir=$BACKUP_DIR/$database
echo "Backing up database $database to $dumpDir..."
......
......@@ -45,7 +45,7 @@ contains()
#
# This function should be used as follows:
#
# if [ $(databaseExist "openbis_prod") == "TRUE" ]; then doBackup; fi
# if [ $(databaseExist "openbis_prod" $owner) == "TRUE" ]; then doBackup; fi
#
databaseExist()
{
......
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