From: Kern Sibbald Date: Wed, 13 Jul 2016 08:41:45 +0000 (+0200) Subject: Explicitly create MySQL user in grant_mysql_privileges.in X-Git-Tag: Release-7.4.3~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b87397a3542533e4c9af9c54ee8f3ef24d601cd0;p=bacula%2Fbacula Explicitly create MySQL user in grant_mysql_privileges.in --- diff --git a/bacula/src/cats/grant_mysql_privileges.in b/bacula/src/cats/grant_mysql_privileges.in index ab85680ade..f19eac11a2 100644 --- a/bacula/src/cats/grant_mysql_privileges.in +++ b/bacula/src/cats/grant_mysql_privileges.in @@ -2,7 +2,7 @@ # # shell script to grant privileges to the bacula database # -# Copyright (C) 2000-2015 Kern Sibbald +# Copyright (C) 2000-2016 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # db_user=${db_user:-@db_user@} @@ -17,6 +17,14 @@ if [ "$db_ssl_options" != "" ]; then ssl_options="require $db_ssl_options" fi +if $bindir/mysql $* -u root -f 2>/dev/null 1>/dev/null <