projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r208@um: micah | 2005-12-26 22:43:36 -0500
[matthijs/upstream/backupninja.git]
/
handlers
/
mysql
diff --git
a/handlers/mysql
b/handlers/mysql
index 8d59fa4b0cd1cb897b8199605930a604058adf6b..55bfb25be0de184e9b4e1b897053d708e4eac19b 100644
(file)
--- a/
handlers/mysql
+++ b/
handlers/mysql
@@
-56,8
+56,11
@@
then
vroot="$VROOTDIR/$vsname"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
vroot="$VROOTDIR/$vsname"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
- running=`$VSERVERINFO $vsname RUNNING`
- [ "$running" = "1" ] || fatal "vserver $vsname is not running."
+ $VSERVERINFO $vsname RUNNING
+ if [ $? -ne 0 ]
+ then
+ fatal "vserver $vsname is not running."
+ fi
fi
# create backup dirs, the vroot variable will be empty if no vsname was specified
fi
# create backup dirs, the vroot variable will be empty if no vsname was specified