]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/drop_postgresql_database.in
whitespace changes
[bacula/bacula] / bacula / src / cats / drop_postgresql_database.in
1 #!/bin/sh
2 #
3 # shell script to drop Bacula database(s)
4 #
5
6 bindir=@SQL_BINDIR@
7
8 if $bindir/psql $* -f - <<END-OF-DATA
9 DROP DATABASE bacula;
10 END-OF-DATA
11 then
12    echo "Drop of bacula database succeeded."
13 else
14    echo "Drop of bacula database failed."
15 fi
16 exit 0