]> git.sur5r.net Git - bacula/bacula/commitdiff
- split an export into two lines so it works in all /bin/sh, not just Linux
authorDan Langille <dan@langille.org>
Sun, 19 Feb 2006 00:47:41 +0000 (00:47 +0000)
committerDan Langille <dan@langille.org>
Sun, 19 Feb 2006 00:47:41 +0000 (00:47 +0000)
- add the creation of the PostgreSQL database

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2790 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/make_catalog_backup.in

index cdc11255b88c0eefb9596ae0d5cce1eab841712b..6c20a8ebd6287848583509c69225025c6ab4e2fc 100755 (executable)
@@ -26,7 +26,8 @@ else
   else                       
     if test xpostgresql = x@DB_NAME@ ; then
       if test $# -gt 2; then
-        export PGPASSWORD=$3
+        PGPASSWORD=$3
+               export PGPASSWORD
       fi
       exec @SQL_BINDIR@/pg_dump -U $2 $1 >$1.sql
     else
@@ -48,5 +49,6 @@ fi
 #  To read back a PostgreSQL database use:
 #     cd @working_dir@
 #     dropdb bacula
+#     createdb bacula
 #     psql bacula <bacula.sql
 #