From 30c0319582597ce1d5ae11ee16294fe2db8de5aa Mon Sep 17 00:00:00 2001 From: Richard Mortimer Date: Wed, 15 Sep 2010 09:42:34 +0200 Subject: [PATCH] Fix postgresql version detection in database creation script Do not quote shell case patterns. They lose their special meaning when quoted and only match exactly. Signed-off-by: Eric Bollengier --- bacula/src/cats/create_postgresql_database.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/cats/create_postgresql_database.in b/bacula/src/cats/create_postgresql_database.in index 50fe6c4bf0..e5d8644b36 100644 --- a/bacula/src/cats/create_postgresql_database.in +++ b/bacula/src/cats/create_postgresql_database.in @@ -18,10 +18,10 @@ PSQLVERSION=`psql -d template1 -c 'select version()' | awk '/PostgreSQL/ {print # This must be updated for future versions of PostgreSQL # case ${PSQLVERSION} in - "9.*") + 9.*) ENCODING="ENCODING 'SQL_ASCII' LC_COLLATE 'C' LC_CTYPE 'C'" ;; - "8.[456789]") + 8.[456789]) ENCODING="ENCODING 'SQL_ASCII' LC_COLLATE 'C' LC_CTYPE 'C'" ;; *) -- 2.39.2