It works! Thank you very much!<br><br><div class="gmail_quote">2009/8/17 Todd Zullinger <span dir="ltr"><<a href="mailto:tmz@pobox.com">tmz@pobox.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Bruno Galindro da Costa wrote:<br>
<br>
</div>(Please don't top post.  Trim the quotes and reply after.)<br>
<div class="im"><br>
> Ok, I´m try to do that, but the variables that are defined on the<br>
> top of spec file will be avaliable for the %post section? How can I<br>
> access then on the %post section?<br>
><br>
> *e.g:*<br>
><br>
> *%post<br>
> chgrp oracle: %{script_path}<br>
</div>> *<br>
<br>
In a case like the example above, %{script_path} will be expanded by<br>
rpm when the %post scriptlet is run.<br>
<br>
If you are thinking more of how to get the current oracle group for<br>
use in %post, it might be something like this:<br>
<br>
%post<br>
<div class="im">oracle_group=$(groups oracle | awk -F : '{print $2}' |awk '{print $1}')<br>
</div>chmod $oracle_group %{script_path}<br>
<br>
Still, I'd look to avoid needing to do this entirely.<br>
<br>
--<br>
<div class="im">Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: <a href="http://www.pobox.com/%7Etmz/pgp" target="_blank">www.pobox.com/~tmz/pgp</a><br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
</div>Don't take life so seriously...it's not a permanent condition.<br>
    -- Noire<br>
<br>
<br>--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br></blockquote></div><br><br clear="all"><br>-- <br>
Att.<br>Bruno Galindro da Costa<br><a href="mailto:bruno.galindro@gmail.com">bruno.galindro@gmail.com</a><br>Florianópolis - SC<br>