[aur-general] postinstall script and local user directory

Auguste Pop auguste at gmail.com
Tue May 22 21:02:09 EDT 2012


On Tue, May 22, 2012 at 7:56 AM, Jorge Barroso
<jorge.barroso.11 at gmail.com> wrote:
> 2012/5/22 Auguste Pop <auguste at gmail.com>
>
>>
>> >i suggest installing a script doing what you want to do in $HOME
>> >directory and print out an instruction in post_install function to
>> >remind the user to run that script as normal user without sudo.
>>
>> >inside the script, $HOME can be used, or ~ too.
>>
>
> Thanks Auguste, I'd like to do it all in the postinstall even though, I'll
> try a little changes on it and I'll see what can I do and if I see it
> doesn't works... I'll keep that on account
>
> Good Idea, I wasn't thought about that ;)

ok. in this case, i suggest you make a wrapper script that 1. checks
the content in user's $HOME directory, 2. does whatever is necessary,
3. runs the actual program.

in this case, what you have done is totally transparent to the user
and every user on the system can use that application.

best regards,


More information about the aur-general mailing list