aboutsummaryrefslogtreecommitdiff
path: root/handlers/sys
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2006-01-19 21:58:29 +0000
committerintrigeri <intrigeri@boum.org>2006-01-19 21:58:29 +0000
commit8bc9312e15bf0284b3767e1791c0de3522f410f2 (patch)
tree0cfdf5f82e4ba708a7cd7816fe8f9bdff8dbdb24 /handlers/sys
parent435e859a25ebf789c38d53431106435fc83b53bc (diff)
downloadbackupninja-8bc9312e15bf0284b3767e1791c0de3522f410f2.tar.gz
backupninja-8bc9312e15bf0284b3767e1791c0de3522f410f2.tar.bz2
handlers/sys: start to use new lib/vserver functionality
Diffstat (limited to 'handlers/sys')
-rwxr-xr-xhandlers/sys18
1 files changed, 7 insertions, 11 deletions
diff --git a/handlers/sys b/handlers/sys
index dd49a3e..349f284 100755
--- a/handlers/sys
+++ b/handlers/sys
@@ -33,23 +33,19 @@ getconf sfdisk_options ""
getconf hwinfo_options ""
# See if vservers are configured
-if [ "$vservers" = "yes" ]
+local usevserver=no
+if [ $vservers_are_available = yes ]
then
- if [ ! -d $VROOTDIR ]
- then
- fatal "vservers enabled, but $VROOTDIR does not exist!"
- else
- info "vserver method enabled"
- usevserver=1
- fi
+ info "vserver method enabled"
+ usevserver=yes
fi
if [ "$packages" == "yes" ]; then
- if [ $usevserver ]
+ if [ $usevserver = yes ]
then
nodpkg="lost+found|ARCHIVES"
info "vserver root directory set to: $VROOTDIR"
- for vserver in `ls $VROOTDIR | grep -E -v $nodpkg`
+ for vserver in $found_vservers
do
info "examining vserver: $vserver"
running=`$VSERVERINFO $vserver RUNNING`
@@ -97,7 +93,7 @@ fi
#
if [ "$packages" == "yes" ]; then
- if [ $usevserver ]
+ if [ $usevserver = yes ]
then
for vserver in `ls $VROOTDIR | grep -E -v $nodpkg`
do