mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
Fixed a critical bug in sys handler vservers support: it tried (and failed) to save packages list even if packages=no.
This commit is contained in:
parent
3d3c5aa3df
commit
88d1f719c5
27
handlers/sys
27
handlers/sys
@ -95,22 +95,23 @@ fi
|
||||
# here we grab a list of the packages installed and removed.
|
||||
#
|
||||
|
||||
if [ $usevserver ]
|
||||
then
|
||||
for vserver in `ls $VROOTDIR | grep -E -v $nodpkg`
|
||||
do
|
||||
debug "$VSERVER $vserver exec dpkg --get-selections > $VROOTDIR/$vserver$packagesfile"
|
||||
$VSERVER $vserver exec dpkg --get-selections > $VROOTDIR/$vserver$packagesfile
|
||||
done
|
||||
fi
|
||||
|
||||
# We want to perform this on the host as well
|
||||
if [ "$packages" == "yes" ]; then
|
||||
debug "dpkg --get-selections > $packagesfile"
|
||||
dpkg --get-selections > $packagesfile
|
||||
if [ $usevserver ]
|
||||
then
|
||||
for vserver in `ls $VROOTDIR | grep -E -v $nodpkg`
|
||||
do
|
||||
debug "$VSERVER $vserver exec dpkg --get-selections > $VROOTDIR/$vserver$packagesfile"
|
||||
$VSERVER $vserver exec dpkg --get-selections > $VROOTDIR/$vserver$packagesfile
|
||||
done
|
||||
fi
|
||||
|
||||
# We want to perform this on the host as well
|
||||
if [ "$packages" == "yes" ]; then
|
||||
debug "dpkg --get-selections > $packagesfile"
|
||||
dpkg --get-selections > $packagesfile
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
## PARTITIONS #############################
|
||||
|
||||
# here we use sfdisk to dump a listing of all the partitions.
|
||||
|
Loading…
Reference in New Issue
Block a user