Hello,
as said Kevin both work but the first one is easier to read and
should be preferred.
Furthermore If for any raison we need to scan code to find where
people have done change user or group in the spec files it will
be easier to track.
Dominig ar Foll
Senior Architect
Intel Open Source Technology Centre
Le 19/02/2014 16:53, Kévin THIERRY a écrit :
Hi,
Both solutions are valid.
Kévin
On 02/19/2014 04:24 PM, RAJENDRA NAIK VADTHE wrote:
Hi,
I have a query regarding the group ownership.
Example 1
======
package/example.call.spec:chown -R 5000:5000
/usr/apps/%{name}/data
As we are going to get the user id only at run time but not
going to get the user id anymore during compile time, we are
using
chgrp as in solution 1.Is solution 2 also feasible?
Solution 1:
=======
chgrp -R %{TZ_SYS_USER_GROUP} /usr/apps/%{name}/data
Solution 2:
======
As chown can also be used to change the group as well,can we use
like
chown -R :%{TZ_SYS_USER_GROUP} /usr/apps/%{name}/data
Could you please confirm whether we should never use chown at
all?
Thanks & Regards,
Rajendra.
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev
|
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev