getconf packagesfile $parentdir/dpkg-selections.txt
getconf packagemgr `which dpkg`
getconf packagemgroptions ' --get-selections *'
- getconf selectionsfile $parentir/debconfsel.txt
+ getconf selectionsfile $parentdir/debconfsel.txt
getconf debconfgetselections `which debconf-get-selections`
elif [ $os = "redhat" ]
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
set +o noglob
fi
if [ -z "$debconfgetselections" ]; then
- warning "can't find ${debconfgetselections}, skilling package selection states."
+ warning "can't find ${debconfgetselections}, skipping package selection states."
else
debug "$debconfgetselections > $selectionsfile"
$debconfgetselections > $selectionsfile || fatal "can not save $debconfgetselections info to $selectionsfile"