mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-10 04:42:31 +01:00
sys: fixed debconf-get-selections search in VServers, especially in case it is not available on the host
This commit is contained in:
parent
1d930270d0
commit
f1cb4e9a64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user