From 9391729a4a7bd4473ffb78f16d11333ce94b849b Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Tue, 20 Mar 2012 07:36:16 +0000 Subject: [PATCH] bug in detecting existing database fixed SVN: 24751 --- installation/resource/installer/bin/backup-databases.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/resource/installer/bin/backup-databases.sh b/installation/resource/installer/bin/backup-databases.sh index cd7e1c7089c..80ca3c6a911 100755 --- a/installation/resource/installer/bin/backup-databases.sh +++ b/installation/resource/installer/bin/backup-databases.sh @@ -46,7 +46,7 @@ function backupDatabase() { getProperty $DB_PROPS "database" database=$propValue - if [ `psql -U postgres -l | grep $database | wc -l` -gt 0 ]; then + if [ `psql -U postgres -l | eval "awk '/$database /'" | wc -l` -gt 0 ]; then getProperty $DB_PROPS "username" username=$propValue -- GitLab