else
if test xmysql = x@DB_NAME@ ; then
echo "Creating MySQL database"
- @scriptdir@/create_mysql_database
+ @scriptdir@/create_mysql_database $*
else
echo "Creating PostgreSQL database"
@scriptdir@/create_postgresql_database
#!/bin/sh
#
# Drop Bacula tables -- works for whatever is configured,
-# MySQL or SQLite
+# MySQL, SQLite, or PostgreSQL
#
if test xsqlite = x@DB_NAME@ ; then
@scriptdir@/drop_sqlite_tables
else
if test xmysql = x@DB_NAME@ ; then
echo "Making MySQL tables"
- @scriptdir@/drop_mysql_tables
+ @scriptdir@/drop_mysql_tables $*
echo "Dropped MySQL tables"
else
# hardcoded database name - should be a parameter
#
if test xmysql = x@DB_NAME@ ; then
echo "Granting MySQL privileges"
- @scriptdir@/grant_mysql_privileges
+ @scriptdir@/grant_mysql_privileges $*
else
if test xpostgresql = x@DB_NAME@ ; then
echo "Granting PostgreSQL privileges"
else
if test xmysql = x@DB_NAME@ ; then
echo "Making MySQL tables"
- @scriptdir@/make_mysql_tables
+ @scriptdir@/make_mysql_tables $*
else
echo "Making PostgreSQL tables"
# hard coded database name
fi
if test xmysql = x@DB_NAME@ ; then
echo "Altering MySQL tables"
- @scriptdir@/update_mysql_tables
+ @scriptdir@/update_mysql_tables $*
fi
if test xpostgresql = x@DB_NAME@ ; then
echo "Altering PostgreSQL tables"