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