#
# shell script to grant privileges to the bacula database
#
-db_user=${db_user-@db_user@}
+db_user=${db_user:-@db_user@}
bindir=@SQL_BINDIR@
-db_name=${db_name-@db_name@}
+db_name=${db_name:-@db_name@}
if $bindir/mysql $* -u root -f <<END-OF-DATA
use mysql
#
# shell script to grant privileges to the bacula database
#
-db_user=${db_user-@db_user@}
+db_user=${db_user:-@db_user@}
bindir=@SQL_BINDIR@
-db_name=${db_name-@db_name@}
+db_name=${db_name:-@db_name@}
if $bindir/psql -f - -d ${db_name} $* <<END-OF-DATA
# shell script to create Bacula MySQL tables
#
bindir=@SQL_BINDIR@
-db_name=${db_name-@db_name@}
+db_name=${db_name:-@db_name@}
if $bindir/mysql $* -f <<END-OF-DATA
USE ${db_name};
# shell script to create Bacula PostgreSQL tables
#
bindir=@SQL_BINDIR@
-db_name=${db_name-@db_name@}
+db_name=${db_name:-@db_name@}
$bindir/psql -f - -d ${db_name} $* <<END-OF-DATA
mixed priorities
General:
+04Nov08
+ebl Fix bash shell to sh shell in database creation script
02Nov08
kes Fix orphaned jobs (possible deadlock) while pruning.
kes Use jcr stored in bsock rather than searching in getmsg.c.