* Marc Haber (mh+debian-packa...@zugschlus.de) [090522 14:43]:
> tags #529887 - patch
> thanks
> 
> On Fri, May 22, 2009 at 07:46:48AM +0200, Andreas Barth wrote:
> > upon upgrade to the current version (from the version in lenny) the
> > postinst script fails because the target directory doesn't exist.
> 
> That should not be the case on any Debian system as ifupdown's
> postinst goes to great lengths (like 50 lines of code) to generate
> /etc/network/run in an appropiate manner.

Well, postinst failed because
STATEPDIR="/etc/network/run"
STATEDIR="$STATEPDIR/ifupdown-scripts-zg2"
and $STATEDIR wasn't there.


> Do you have any ideas what ifupdown-scripts-zg2 should do here?

What about:

if ! [ -d $STATEPDIR ]; then
    echo "uh, missing $STATEPDIR. Is ifupdown configured?"
    exit 1
fi

[ -d $STATEDIR ] || mkdir -m 755 $STATEDIR


Cheers,
Andi



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to