From 9c6bba1608b659d0070e950ffcb990a4b867367d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 25 Jan 2011 09:34:23 +0100 Subject: [PATCH] Fix #1684 Use --with-db-password option in grant_bacula_privileges scripts --- bacula/src/cats/grant_mysql_privileges.in | 8 ++++++-- bacula/src/cats/grant_postgresql_privileges.in | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bacula/src/cats/grant_mysql_privileges.in b/bacula/src/cats/grant_mysql_privileges.in index 6ff5969193..09a1569fa1 100644 --- a/bacula/src/cats/grant_mysql_privileges.in +++ b/bacula/src/cats/grant_mysql_privileges.in @@ -5,11 +5,15 @@ db_user=${db_user:-@db_user@} bindir=@SQL_BINDIR@ db_name=${db_name:-@db_name@} +db_password=@db_password@ +if [ "$db_password" != "" ]; then + pass="identified by '$db_password'" +fi if $bindir/mysql $* -u root -f <