Hello, I need a little help with a postinstall script, the script should
make automatically a few postinstall steps on the LMD installation, qhat
the script should make it's to detect if a directory called .LMD on the
home directory exists, if it exists, it shows an informative message, if it
doesn
>> On Tue, 22 May 2012 00:52:00 +0200, Jorge Barroso said:
> Hello, I need a little help with a postinstall script, the script should
> make automatically a few postinstall steps on the LMD installation, qhat
> the script should make it's to detect if a directory called .LMD on the
> home
On Tue, May 22, 2012 at 6:52 AM, Jorge Barroso
wrote:
> Hello, I need a little help with a postinstall script, the script should
> make automatically a few postinstall steps on the LMD installation, qhat
> the script should make it's to detect if a directory called .LMD on the
> home directory exi
2012/5/22 Myles English
>
>
> >Hi Jorge,
>
> >Try "/home/$USER" instead of "~".
>
> --
> `--[ Myles ]
>
It takes it like /home/root... :S thanks even though ;)
2012/5/22 Auguste Pop
>
> >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 Augus
2012/5/21 Jorge Barroso :
> 2012/5/22 Auguste Pop
>
>>
>> >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
2012/5/22 rafael ff1
> >Since your first post, I was not comfortable having a install script
> >looking for a normal user's home folder, because you can always find
> >yourself in the situation that a user might be added after LMD is
> >installed. (not being harsh, just not a good idea, IMO)
>
>
2012/5/22 Jorge Barroso :
> 2012/5/22 rafael ff1
>
>>
>> > sed -e '325s#then#then\n\t[ ! -d ~/.LMD ] \&\& lmd -reconf#' -i
>> >"${pkgdir}"/usr/bin/lmd
>>
>
> Mmm yes it helps, I know what you mean, adding a line on the own lmd binary
> script that checks if .LMD already exists... any time you run
2012/5/22 rafael ff1
>
> >If you're not comfortable with sed, you can always create a patch
> >using 'diff -u foo1 bar2 > foo-bar.patch' and add to source=() ... But
> >since we are here:
>
> >My sed command executes an expression in an input text. The input text
> >is from the file 'lmd'. I also
2012/5/22 Jorge Barroso :
> 2012/5/22 rafael ff1
>
>>
>> >If you're not comfortable with sed, you can always create a patch
>> >using 'diff -u foo1 bar2 > foo-bar.patch' and add to source=() ... But
>> >since we are here:
>>
>> >My sed command executes an expression in an input text. The input tex
On Tue, May 22, 2012 at 7:56 AM, Jorge Barroso
wrote:
> 2012/5/22 Auguste Pop
>
>>
>> >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.
>>
>>
2012/5/22 rafael ff1
>
> >Looks good. Try to build the package and then verify if
> >pkg/usr/bin/lmd has the command added with sed. Case yes, then you're
> >good to go.
>
> >Rafael Ferreira
>
2012/5/23 Auguste Pop
>ok. in this case, i suggest you make a wrapper script that 1. checks
>the
12 matches
Mail list logo