Re: dpkg-statoverride question
On Sat, 28 Sep 2002, 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.
>
> 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
> 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 $?"
> done
>
> and get:
maintainer scripts are not supposed to dpkg-statoverride. You set the perms
in the deb, when building it. Local admins then call dpkg-statoverride to
change it.
Reply to: