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

Re: Bug#179125: maintainer scripts tries to exec script in /tmp



On Mon, 2003-02-03 at 11:16, Andreas Metzler wrote:

> I don't know who is right, but working around this issue should be
> simple, just do it they way dpkg-preconfigure does and don't execute
> the script directly. "/usr/bin/perl /tmp/config.151751" instead of
> "/tmp/config.151751".
>                 cu andreas

This is where it gets used ($SCRIPTFILE contains the pathname of the
script):

  /sbin/start-stop-daemon --chuid postgres --name `basename $SCRIPTFILE`
--startas $SCRIPTFILE --start

I'm not sure how to express the command in a form that will work if
$SCRIPTFILE can't be executed directly.
-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "O come, let us worship and bow down; let us kneel 
      before the LORD our maker."            Psalms 95:6 



Reply to: