From: Richard Mortimer Date: Wed, 15 Sep 2010 07:42:34 +0000 (+0200) Subject: Fix postgresql version detection in database creation script X-Git-Tag: Release-5.2.1~1115 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3fc0a7996e02d26aa6d2fd7894a5fac0f17f3474;p=bacula%2Fbacula 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 --- 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'" ;; *)