Re: Bug#179125: maintainer scripts tries to exec script in /tmp
On Mon, Feb 03, 2003 at 01:23:59PM +0000, Oliver Elphick wrote:
> 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".
> 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.
Just guessing:
su - postgres -c "/usr/bin/perl /tmp/config.151751"
cu andreas
Reply to: