Hi,

 We finally managed to rectify the issue. We have updated the tracker with
the latest gnowsys.info and gnowsys.patch files.  Please do have a look at
the same.

Thanks for your help,
Sandeep

On Sun, Jul 5, 2009 at 7:08 PM, monipol <[email protected]> wrote:

> On 05/07/2009, at 10:17, Sandeep Bhaskar wrote:
>
>>
>> On Sun, Jul 5, 2009 at 6:02 PM, monipol <[email protected]> wrote:
>>
>>  On 04/07/2009, at 21:44, Sandeep Bhaskar wrote:
>>>
>>>  We were able to create user and rectify problems in gnowsys.info file.
>>>> But
>>>> we are facing an issue in running a shell script. This script needs to
>>>> be
>>>> executed from the user postgres(postgresql user). The command within
>>>> shell
>>>> is like:
>>>>
>>>> su postgres -c ./gnowsys-pg-install.sh
>>>>
>>>> This line throws an error as Access Denied. Can you please suggest some
>>>> way
>>>> that we can switch to postgres user and execute the shell.
>>>>
>>>> This is the only remaining issue and hope to hear a quick response to
>>>> the
>>>> same.
>>>>
>>>>  Please provide more information:
>>>
>>> * What Fink command were you running when you got that error?
>>> * Is the passwd package a build dependency of your package?
>>> * Where exactly are you issuing that su command (CompileScript,
>>> InstallScript, PostInstScript, ...)?
>>>
>>
>
>> Please find the additional information you requested for. Please do let me
>> know if anything more is required.
>>
>> * What Fink command were you running when you got that error?
>> *fink -m -K --build-as-nobody rebuild gnowsys
>> *
>> * Is the passwd package a build dependency of your package?
>> *The user creation issue we have already sorted out. Right now, our only
>> issue is in using of su command.
>>
>> * * Where exactly are you issuing that su command (CompileScript,
>> InstallScript, PostInstScript, ...)?
>> *The InstallScript section within gnowsys.info file contains:
>>
>> *InstallScript: <<
>> sh install.sh %i %b %d %p
>> <<*
>>
>> The command su postgres -c ./gnowsys-pg-install.sh* *is called from within
>> this install.sh and not directly from within the .info file.
>>
>
>
> fink --build-as-nobody runs as the user nobody which doesn't have su
> privileges, hence the Access Denied message.
>
> Would it be possible to move that su postgres -c ... command to
> PreInstScript or PostInstScript? Is it really necessary at Fink build time
> or can it be executed only when some user runs fink install gnowsys?
>
> The Packaging Manual has information on PreInstScript and PostInstScript:
> http://www.finkproject.org/doc/packaging/reference.php
>
>
>
> --
> monipol
> http://finkers.wordpress.com
>
------------------------------------------------------------------------------
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to