X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fmysql.in;fp=handlers%2Fmysql.in;h=3a908f68ef669b62e6c0cb3d63eeb230a5b86199;hb=85f69abc9779dd28c0dfdf128aa4c77e08fe3b7f;hp=d22ef26c99d4cd926bffd3c7f32297664f08702f;hpb=c4d63e35e8e5d98e0a78c2f5f5c1b4f08cd00fa1;p=matthijs%2Fupstream%2Fbackupninja-vserver.git diff --git a/handlers/mysql.in b/handlers/mysql.in index d22ef26..3a908f6 100644 --- a/handlers/mysql.in +++ b/handlers/mysql.in @@ -161,7 +161,11 @@ else debug "User home set to: $userhome" [ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf" - defaultsfile="--defaults-extra-file=$userhome/.my.cnf" + if [ $usevserver = yes ]; then + defaultsfile="--defaults-extra-file=$vuserhome/.my.cnf" + else + defaultsfile="--defaults-extra-file=$userhome/.my.cnf" + fi debug "using $defaultsfile" fi