]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/create_postgresql_database.in
- Rename mac.c migrate.c
[bacula/bacula] / bacula / src / cats / create_postgresql_database.in
index 1cbe61e9e6a4f9de938f9707a7c3f61b1b1b8930..e40ef541c6b36c6ba6768e79f295ed176ca05b95 100644 (file)
@@ -5,8 +5,17 @@
 
 bindir=@SQL_BINDIR@
 
+# use SQL_ASCII to be able to put any filename into
+#  the database even those created with unusual character sets
+ENCODING="ENCODING 'SQL_ASCII'"
+# use UTF8 if you are using standard Unix/Linux LANG specifications
+#  that use UTF8 -- this is normally the default and *should* be
+#  your standard.  Bacula consoles work correctly *only* with UTF8.
+#ENCODING="ENCODING 'UTF8'"
+     
+
 if $bindir/psql -f - -d template1 $* <<END-OF-DATA
-CREATE DATABASE bacula;
+CREATE DATABASE bacula $ENCODING;
 END-OF-DATA
 then
    echo "Creation of bacula database succeeded."