[wpkg-users] Java7 for all but one host

Stefan Pendl stefan.pendl.71 at gmail.com
Fri Nov 1 14:05:00 CET 2013


Am 01.11.2013 13:57, schrieb Jáder Marasca:
> I´d like to create a Java7 install package but ONE computer need to 
> use ONLY Java6 so I think about to use HOSTNAME variable to deny 
> install on that single host.
>
> I just do not know how to use it ! :$
>
> Any tips about this?
>
>
I do have the following package, so I can apply Java to any Profile and 
sort out which version to install inside of that package.

'---code start (watch for line wraps)

<package id="Java" name="Java" revision="2011.10.22" reboot="false" priority="10" execute="once">
     <include package-id="JRE6" os="5\.0\.\d{4}"/>
     <include package-id="JRE7">
         <condition>
             <check type="logical" condition="not">
                 <check type="host" condition="os" value="5\.0\.\d{4}"/>
             </check>
         </condition>
     </include>
</package>

'---code end

--
Stefan P.

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?




More information about the wpkg-users mailing list