projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@186 758a04ac-41e6-0310...
[matthijs/upstream/backupninja.git]
/
handlers
/
svn
diff --git
a/handlers/svn
b/handlers/svn
index cd3cc2e99983350fba18a5436d53e2169a938c18..6ac54029547665829ba01b09ccbd47a19e18d784 100644
(file)
--- a/
handlers/svn
+++ b/
handlers/svn
@@
-12,7
+12,7
@@
error=0
# If vservers are configured, decide if the handler should
# use them or if it should just operate on the host
# If vservers are configured, decide if the handler should
# use them or if it should just operate on the host
-if [ "$
VSERVERS
" = "yes" ]
+if [ "$
vservers
" = "yes" ]
then
if [ ! -z $vsname ]
then
then
if [ ! -z $vsname ]
then
@@
-23,11
+23,16
@@
then
fi
fi
fi
fi
-#
Check to make sure that the specified vserver exists
+#
If needed, make sure that the specified vserver exists and is running.
if [ $usevserver ]
then
if [ $usevserver ]
then
+ info "examining vserver '$vsname'"
+ # does it exist ?
vroot="$VROOTDIR/$vsname"
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
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."
fi
cd $vroot$src
fi
cd $vroot$src