Skip to content
Snippets Groups Projects
Commit f1cb4e9a authored by intrigeri's avatar intrigeri
Browse files

sys: fixed debconf-get-selections search in VServers, especially in case it is...

sys: fixed debconf-get-selections search in VServers, especially in case it is not available on the host
parent 1d930270
No related branches found
No related tags found
No related merge requests found
...@@ -126,11 +126,11 @@ if [ "$packages" == "yes" ]; then ...@@ -126,11 +126,11 @@ if [ "$packages" == "yes" ]; then
set +o noglob set +o noglob
fi fi
# is $debconfgetselections available inside $vserver ? # is $debconfgetselections available inside $vserver ?
if [ ! -x "$VROOTDIR/$vserver`$VSERVER $vserver exec which $debconfgetselections`" ]; then if [ -z "`$VSERVER $vserver exec which debconf-get-selections`" ]; then
warning "can't find $debconfgetselections in vserver $vserver, skipping package selection states." warning "can't find debconf-get-selections in vserver $vserver, skipping package selection states."
else else
debug "$VSERVER $vserver exec $debconfgetselections > $VROOTDIR/$vserver$selectionsfile" 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 fi
done done
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment