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
add changelog entry for maildir destid_file addition
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
mysql.in
diff --git
a/handlers/mysql.in
b/handlers/mysql.in
index 64b6f492188b31429ceb9249abd9c748fd68d99c..defb72aa8aeb98713d807024a5a488bcbca43cdd 100644
(file)
--- a/
handlers/mysql.in
+++ b/
handlers/mysql.in
@@
-238,7
+238,7
@@
then
fatal "Authentication problem, maybe user/password is wrong or mysqld is not running?"
fi
else
fatal "Authentication problem, maybe user/password is wrong or mysqld is not running?"
fi
else
- databases=
`echo 'show databases' | su $user -c "$MYSQL $defaultsfile" | grep -v Database`
+ databases=
$(su $user -c "$MYSQL $defaultsfile -N -B -e 'show databases'" | sed 's/|//g;/\+----/d')
if [ $? -ne 0 ]
then
fatal "Authentication problem, maybe user/password is wrong or mysqld is not running?"
if [ $? -ne 0 ]
then
fatal "Authentication problem, maybe user/password is wrong or mysqld is not running?"