From: Eric Bollengier Date: Tue, 25 Jan 2011 08:34:23 +0000 (+0100) Subject: Fix #1684 Use --with-db-password option in grant_bacula_privileges scripts X-Git-Tag: Release-7.0.0~1209 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83e055eff8d19481c025735bd68e46b96786a49a;p=bacula%2Fbacula Fix #1684 Use --with-db-password option in grant_bacula_privileges scripts --- 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 <