Aditya wrote:
> I need to install a set of files in a particular location depending on a 
> condition. More specifically if in a ordinary solaris host then I will 
> install it directoy "A" else if its in a solaris zone then I will install in 
> directory  "B". Kindly tell me how do i achieve this

The simple answer might be to create two separate packages: one intended
for installation in a non-global zone, and the other intended for
installation in the global zone.

Another possible answer would be to tell your zone users to use "-R" to
do whatever relocation is needed.  Or provide a wrapper script that does
this for you by checking /usr/bin/zonename output.

But I think the real question here is "why?"  What are you attempting to
accomplish?  It's possible that there are other answers that likely
depend on the details.

(In general, I'd expect that users would appreciate it if packages
installed exactly the same way in the global zone as in a non-global
zone.  Making it different just makes the system harder to administer.)

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>

Reply via email to