aboutsummaryrefslogtreecommitdiff
path: root/handlers/mysql
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-10-07 16:02:27 +0000
committerElijah Saxon <elijah@riseup.net>2005-10-07 16:02:27 +0000
commit02ffef7501e137ea83563b1b16937e938d3b8c4d (patch)
treea533f0c1814d34190662e43dd769631be92dabaf /handlers/mysql
parent55427e72e27238e86d205399eb8b379ebcc14ef5 (diff)
downloadbackupninja-02ffef7501e137ea83563b1b16937e938d3b8c4d.tar.gz
backupninja-02ffef7501e137ea83563b1b16937e938d3b8c4d.tar.bz2
applied patch to rdiff.helper, removed /etc/passwd from mysql handler.
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 4ac631b..569b0a2 100644
--- a/handlers/mysql
+++ b/handlers/mysql
@@ -95,7 +95,7 @@ fi
defaultsfile=""
if [ "$dbusername" != "" -a "$dbpassword" != "" ]; then
- home=`grep '^root:' /etc/passwd | awk -F: '{print $6}'`
+ home=`getent passwd "root" | awk -F: '{print $6}'`
[ -d $home ] || fatal "Can't find root's home directory ($home)."
mycnf="$home/.my.cnf"
if [ -f $mycnf ]; then