projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8a445
)
fixed bug when system has multiple usernames starting with "root".
author
Elijah Saxon
<elijah@riseup.net>
Mon, 21 Mar 2005 17:48:34 +0000
(17:48 +0000)
committer
Elijah Saxon
<elijah@riseup.net>
Mon, 21 Mar 2005 17:48:34 +0000
(17:48 +0000)
handlers/mysql
patch
|
blob
|
history
diff --git
a/handlers/mysql
b/handlers/mysql
index 165ebc68829c35ec63a59154183c7d0e0b5b19e1..6a8c3dd990a51c2849843709069baa9b2e1a7137 100644
(file)
--- 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