]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix postgresql version detection in database creation script
authorRichard Mortimer <richm@oldelvet.org.uk>
Wed, 15 Sep 2010 07:42:34 +0000 (09:42 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 15 Sep 2010 07:43:43 +0000 (09:43 +0200)
Do not quote shell case patterns. They lose their special meaning when
quoted and only match exactly.

Signed-off-by: Eric Bollengier <eric@eb.homelinux.org>
bacula/src/cats/create_postgresql_database.in

index 50fe6c4bf06509f58f9f35e7d8af706f51ba1d80..e5d8644b363fed931ed3a36665325567b3bb3a3d 100644 (file)
@@ -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'"
     ;;
     *)