[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg-statoverride question

On Sat, Sep 28, 2002 at 09:33:30AM +1000, Brian May wrote:
> On Tue, Sep 24, 2002 at 02:00:32PM +0100, Julian Gilbey wrote:
> > That looks weird.  Perhaps you could remove the '>/dev/null' and also
> > put in a call to dpkg-statoverride followed by "echo $?" so we can see
> > what's happening?
> I think the override is getting deleted somewhere (not by me).
> Once my postinst script crashed, and there was no override.

This is weird.

> I change the code to:
>         adduser --system --home /var/lib/amavis --no-create-home amavis
>         echo adduser returned $?
>         for i in /var/lib/amavis /var/lib/amavis/virusmails /var/run/amavis
>         do

Can you add an
                  echo "Output of initial dpkg-statoverride --list $i:"
                  dpkg-statoverride --list $i

>                 if ! dpkg-statoverride --list $i
>                 then
>                         echo "dpkg-statoverride(a) returned $?"
>                         dpkg-statoverride --update --add amavis root 755 $i
>                         echo "dpkg-statoverride(b) returned $?"
>                 fi
>                 echo "dpkg-statoverride(c) returned $?"

And an
                  echo "Output of final dpkg-statoverride --list $i:"
                  dpkg-statoverride --list $i

>         done



      Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
              website: http://www.maths.qmul.ac.uk/~jdg/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry

Reply to: