X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fmysql;h=d5c0370e733c9252c217e574cfd0c1a2af0fea89;hb=d52a1ac97e97c51c15ccd52d7dce93d3a092e636;hp=13dd62f2643a9d3be9ffdcaf0e82df2555d8cdc0;hpb=1b3449f24cd2ce5ec99602ef6d4286d8159e427f;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/mysql b/handlers/mysql index 13dd62f..d5c0370 100644 --- a/handlers/mysql +++ b/handlers/mysql @@ -28,7 +28,7 @@ fi # If vservers are configured, decide if the handler should # use them or if it should just operate on the host -if [ "$VSERVERS" = "yes" ] +if [ "$vservers" = "yes" ] then if [ ! -z $vsname ] then @@ -96,15 +96,15 @@ if [ "$dbusername" != "" -a "$dbpassword" != "" ]; then # auto generated backupninja mysql conf [mysql] user=$dbusername -password=$dbpassword +password="$dbpassword" [mysqldump] user=$dbusername -password=$dbpassword +password="$dbpassword" [mysqlhotcopy] user=$dbusername -password=$dbpassword +password="$dbpassword" EOF umask $oldmask defaultsfile="--defaults-file=$mycnf"