#
if test xsqlite = x@DB_NAME@ ; then
echo "Creating SQLite database"
- . ./create_sqlite_database
+ @scriptdir@/create_sqlite_database
else
if test xmysql = x@DB_NAME@ ; then
echo "Creating MySQL database"
- . ./create_mysql_database
+ @scriptdir@/create_mysql_database
else
echo "Creating PostgreSQL database"
- . ./create_postgresql_database
+ @scriptdir@/create_postgresql_database
fi
fi
# MySQL or SQLite
#
if test xsqlite = x@DB_NAME@ ; then
- . ./drop_sqlite_tables
+ @scriptdir@/drop_sqlite_tables
echo "Dropped SQLite tables"
else
if test xmysql = x@DB_NAME@ ; then
echo "Making MySQL tables"
- . ./drop_mysql_tables
+ @scriptdir@/drop_mysql_tables
echo "Dropped MySQL tables"
else
# hardcoded database name - should be a parameter
- . ./drop_postgresql_tables bacula
+ @scriptdir@/drop_postgresql_tables bacula
echo "Dropped PostgreSQL tables"
fi
fi
#
if test xmysql = x@DB_NAME@ ; then
echo "Granting MySQL privileges"
- . ./grant_mysql_privileges
+ @scriptdir@/grant_mysql_privileges
else
if test xpostgresql = x@DB_NAME@ ; then
echo "Granting PostgreSQL privileges"
# hard coded database name
- . ./grant_postgresql_privileges bacula
+ @scriptdir@/grant_postgresql_privileges bacula
else
if test xsqlite = x@DB_NAME@ ; then
echo "Granting SQLite privileges"
# hard coded database name
- . ./grant_sqlite_privileges
+ @scriptdir@/grant_sqlite_privileges
fi
fi
fi
#
if test xsqlite = x@DB_NAME@ ; then
echo "Making SQLite tables"
- . ./make_sqlite_tables
+ @scriptdir@/make_sqlite_tables
else
if test xmysql = x@DB_NAME@ ; then
echo "Making MySQL tables"
- . ./make_mysql_tables
+ @scriptdir@/make_mysql_tables
else
echo "Making PostgreSQL tables"
# hard coded database name
- . ./make_postgresql_tables bacula
+ @scriptdir@/make_postgresql_tables bacula
fi
fi
#
if test xsqlite = x@DB_NAME@ ; then
echo "Altering SQLite tables"
- . ./update_sqlite_tables
+ @scriptdir@/update_sqlite_tables
fi
if test xmysql = x@DB_NAME@ ; then
echo "Altering MySQL tables"
- . ./update_mysql_tables
+ @scriptdir@/update_mysql_tables
fi
if test xpostgresql = x@DB_NAME@ ; then
echo "Altering PostgreSQL tables"
# we need the bacula datbase name in here... Should not be hardcoded
- . ./update_postgresql_tables bacula
+ @scriptdir@/update_postgresql_tables bacula
fi