summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7f29ddb)
# temporary ~/.my.cnf in root's home directory).
if [ "$dbusername" != "" ]; then
# 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
[ -d $home ] || fatal "Can't find root's home directory ($home)."
mycnf="$home/.my.cnf"
if [ -f $mycnf ]; then