X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=handlers%2Fsys.in;h=d1bf820b711e68a1612ee4359d440d8775001894;hb=da2da56600011ceb2ecec69e64eb96f92f99ade0;hp=a029af6762a66b4f321e037c9b9f2c1951452eda;hpb=0e1be57a8c2449b7356aec2f17a00884f87a842b;p=matthijs%2Fupstream%2Fbackupninja-vserver.git diff --git a/handlers/sys.in b/handlers/sys.in index a029af6..d1bf820 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 @@ -146,7 +146,7 @@ if [ "$packages" == "yes" ]; then set +o noglob fi if [ -z "$debconfgetselections" ]; then - warning "can't find ${debconfgetselections}, skilling package selection states." + warning "can't find debconf-get-selections, skipping package selection states." else debug "$debconfgetselections > $selectionsfile" $debconfgetselections > $selectionsfile || fatal "can not save $debconfgetselections info to $selectionsfile"