aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-01-12 22:47:30 +0000
committerintrigeri <intrigeri@boum.org>2009-01-12 22:47:30 +0000
commit94861df686d7083675af42890ececb70cb108b67 (patch)
tree7b957c091ef839c72fa2c370e73b39b36a573232 /handlers
parenta1c625fcc3c1bdcc81bb23aee3bea95051d6cc20 (diff)
downloadbackupninja-94861df686d7083675af42890ececb70cb108b67.tar.gz
backupninja-94861df686d7083675af42890ececb70cb108b67.tar.bz2
mysql: fix 'mysqladmin ping' use, see changelog for details
Diffstat (limited to 'handlers')
-rw-r--r--handlers/mysql.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/handlers/mysql.in b/handlers/mysql.in
index c80a36a..e34b16d 100644
--- a/handlers/mysql.in
+++ b/handlers/mysql.in
@@ -266,9 +266,9 @@ then
if [ $usevserver = yes ]
then
# Test to make sure mysqld is running, if it is not sqldump will not work
- $VSERVER $vsname exec su $user -c "$MYSQLADMIN $defaultsfile ping"
+ $VSERVER $vsname exec su $user -c "$MYSQLADMIN $defaultsfile ping 2>&1 >/dev/null"
if [ $? -ne 0 ]; then
- fatal "Either you have an authentication problem, or mysqld doesn't appear to be running!"
+ fatal "mysqld doesn't appear to be running!"
fi
if [ "$compress" == "yes" ]; then
execstr="$VSERVER $vsname exec $DUMP | $GZIP > $vroot$dumpdir/${db}.sql.gz"
@@ -277,9 +277,9 @@ then
fi
else
# Test to make sure mysqld is running, if it is not sqldump will not work
- su $user -c "$MYSQLADMIN $defaultsfile ping"
+ su $user -c "$MYSQLADMIN $defaultsfile ping 2>&1 >/dev/null"
if [ $? -ne 0 ]; then
- fatal "Either you have an authentication problem, or mysqld doesn't appear to be running!"
+ fatal "mysqld doesn't appear to be running!"
fi
if [ "$compress" == "yes" ]; then
execstr="$DUMP | $GZIP > $dumpdir/${db}.sql.gz"