projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7def766
)
ldap: Check if a vserver is running.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 5 Jan 2009 16:06:29 +0000
(17:06 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Wed, 7 Jan 2009 20:49:35 +0000
(21:49 +0100)
handlers/ldap.in
patch
|
blob
|
history
diff --git
a/handlers/ldap.in
b/handlers/ldap.in
index d929252d0b021ec0698a47fa4e6302693cd9f46a..65dd85375e13a6f1066a376ee2cfc6cd9040da65 100644
(file)
--- a/
handlers/ldap.in
+++ b/
handlers/ldap.in
@@
-51,6
+51,10
@@
function make_backup() {
vdir=""
vexec=""
else
+ if ! vservers_running "$vsname"; then
+ error "vserver $vsname is not running!"
+ return 1
+ fi
info "Running on vserver $vsname"
vdir="$VROOTDIR/$vsname"
vexec="$VSERVER $vsname exec"