projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r3567@krups: intrigeri | 2005-11-17 22:08:30 +0100
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
mysql
diff --git
a/handlers/mysql
b/handlers/mysql
index 57b9ecfe52b2fb695279f8816ed4c77c83d5c080..569b0a206d21dc4b509539fd969c2ce6e9d181e3 100644
(file)
--- a/
handlers/mysql
+++ b/
handlers/mysql
@@
-22,7
+22,7
@@
if [ "$user" == "" ]; then
user=root;
else
userset=true;
user=root;
else
userset=true;
- userhome=`g
rep "^$user:" /etc/passwd
| awk -F: '{print $6}'`
+ userhome=`g
etent passwd "$user"
| awk -F: '{print $6}'`
[ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf"
fi
[ -f $userhome/.my.cnf ] || fatal "Can't find config file in $userhome/.my.cnf"
fi
@@
-95,7
+95,7
@@
fi
defaultsfile=""
if [ "$dbusername" != "" -a "$dbpassword" != "" ]; then
defaultsfile=""
if [ "$dbusername" != "" -a "$dbpassword" != "" ]; then
- home=`g
rep '^root:' /etc/passwd
| awk -F: '{print $6}'`
+ home=`g
etent 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
[ -d $home ] || fatal "Can't find root's home directory ($home)."
mycnf="$home/.my.cnf"
if [ -f $mycnf ]; then