From 3fc0a7996e02d26aa6d2fd7894a5fac0f17f3474 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.5