]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_bacula_database.in
Correct compile error
[bacula/bacula] / bacula / src / cats / drop_bacula_database.in
index cf9adc360de3db8be3af7d4594faa53759548873..89dd7c8c887f16c8fa677a59080579082372a2b0 100755 (executable)
@@ -3,16 +3,13 @@
 #  Drop Bacula database -- works for whatever is configured,
 #    MySQL, SQLite, PostgreSQL
 #
-if test xsqlite = x@DB_NAME@ ; then
-  @scriptdir@/drop_sqlite_database $*
-  echo "Dropped SQLite database"
+if test xsqlite = x@DB_TYPE@ -o xsqlite3 = x@DB_TYPE@ ; then
+  @scriptdir@/drop_@DB_TYPE@_database $*
 else
-  if test xmysql = x@DB_NAME@ ; then 
+  if test xmysql = x@DB_TYPE@ ; then 
     echo "Making MySQL database"
     @scriptdir@/drop_mysql_database $*
-    echo "Dropped MySQL database"
   else
     @scriptdir@/drop_postgresql_database $*
-    echo "Dropped PostgreSQL database"
   fi
 fi