aboutsummaryrefslogtreecommitdiff
path: root/handlers/mysql
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/mysql')
-rw-r--r--handlers/mysql2
1 files changed, 1 insertions, 1 deletions
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