X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=handlers%2Fmysql;h=6a8c3dd990a51c2849843709069baa9b2e1a7137;hp=165ebc68829c35ec63a59154183c7d0e0b5b19e1;hb=9f9a16697883529f3271b3b44ab742b217726e2a;hpb=7a8a4455bed618e18254dcadb319c69a95edd64d diff --git a/handlers/mysql b/handlers/mysql index 165ebc6..6a8c3dd 100644 --- a/handlers/mysql +++ b/handlers/mysql @@ -27,7 +27,7 @@ dumpdir="$backupdir/sqldump" # temporary ~/.my.cnf in root's home directory). if [ "$dbusername" != "" ]; then - home=`grep '^root' /etc/passwd | awk -F: '{print $6}'` + home=`grep '^root:' /etc/passwd | awk -F: '{print $6}'` [ -d $home ] || fatal "Can't find root's home directory ($home)." mycnf="$home/.my.cnf" if [ -f $mycnf ]; then