aboutsummaryrefslogtreecommitdiff
path: root/handlers/sys.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-06-25 09:00:04 +0000
committerintrigeri <intrigeri@boum.org>2008-06-25 09:00:04 +0000
commitf1cb4e9a644ce0ad5c2879cb1713b70eace3f98a (patch)
treeb7cd991aba203b7930fab2f57d40cb8b81d6caf7 /handlers/sys.in
parent1d930270d0dc1d56f49d5c3bd667e0e3a4fa35b0 (diff)
downloadbackupninja-f1cb4e9a644ce0ad5c2879cb1713b70eace3f98a.tar.gz
backupninja-f1cb4e9a644ce0ad5c2879cb1713b70eace3f98a.tar.bz2
sys: fixed debconf-get-selections search in VServers, especially in case it is not available on the host
Diffstat (limited to 'handlers/sys.in')
-rwxr-xr-xhandlers/sys.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/handlers/sys.in b/handlers/sys.in
index a029af6..cc8ed09 100755
--- a/handlers/sys.in
+++ b/handlers/sys.in
@@ -126,11 +126,11 @@ if [ "$packages" == "yes" ]; then
set +o noglob
fi
# is $debconfgetselections available inside $vserver ?
- if [ ! -x "$VROOTDIR/$vserver`$VSERVER $vserver exec which $debconfgetselections`" ]; then
- warning "can't find $debconfgetselections in vserver $vserver, skipping package selection states."
+ if [ -z "`$VSERVER $vserver exec which debconf-get-selections`" ]; then
+ warning "can't find debconf-get-selections in vserver $vserver, skipping package selection states."
else
debug "$VSERVER $vserver exec $debconfgetselections > $VROOTDIR/$vserver$selectionsfile"
- $VSERVER $vserver exec $debconfgetselections > $VROOTDIR/$vserver$selectionsfile || fatal "can not save $debconfgetselections info to $selectionsfile"
+ $VSERVER $vserver exec $debconfgetselections > $VROOTDIR/$vserver$selectionsfile || fatal "can not save debconf-get-selections info to $selectionsfile"
fi
done
fi