]> git.sur5r.net Git - bacula/bacula/commitdiff
Use the command line utility dropdb instead of the psql command
authorDan Langille <dan@langille.org>
Sat, 3 Jan 2004 22:26:34 +0000 (22:26 +0000)
committerDan Langille <dan@langille.org>
Sat, 3 Jan 2004 22:26:34 +0000 (22:26 +0000)
drop database.  The latter cannot be used because we would be using
the database we are dropping.

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

bacula/src/cats/drop_postgresql_database.in

index 9ab41c52de2912b80ac53a37d690ebf6b3f89b9c..bb4a1499aeff052c2e54c913f888c710fea2a4ef 100644 (file)
@@ -5,9 +5,7 @@
 
 bindir=@SQL_BINDIR@
 
-if $bindir/psql $* -f - <<END-OF-DATA
-DROP DATABASE bacula;
-END-OF-DATA
+if $bindir/dropdb bacula
 then
    echo "Drop of bacula database succeeded."
 else