Guten morgen,
ich suche eine elegante Möglichkeit, wie ich
- ein Metapaket nutze um nicht nur die Setup-Aktion auf "setup" eines Paketes zu setzen
- sondern auch ein Produktproperty in der Control-Datei des Metapaketes festlegen kann, welches an das per "setup" getriggerte Paket diesen Property-Wert übergeben kann
Sprich: Ich setze das Metapaket "basisinstallation" auf setup, das Paket BUBU wird ebenfalls auf Setup gesetzt und das Property LALA des Paketes BUBU wird auf TRUE gesetzt. Ein weiteres Metapaket "basisinstallation2 soll das Paket BUBU ebenfalls auf Setup setzen jedoch das Property LALA auf FALSE setzen.
Vielen herzlichen Dank!
Metapaket - setzen von Properties
- SisterOfMercy
- Beiträge: 1524
- Registriert: 22 Jun 2012, 19:18
Re: Metapaket - setzen von Properties
You make a metapackage with some more options and a bit of a script.
Something like this:
Something like this:
Code: Alles auswählen
[Actions]
DefVar $property$
set $property$ = GetProductProperty("property_for_other_package","False")
opsiservicecall_set_property
[opsiservicecall_set_property]
"method": "productPropertyState_create"
"params": [
"other-product-id"
"property_in_other_package"
"%HostID%"
"false"
]
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: Metapaket - setzen von Properties
Thank you for giving me the right direction.
I couldn't find such an example in the documentation or I'm just blind...
Thanks for saving my day like you always do!
I couldn't find such an example in the documentation or I'm just blind...
Thanks for saving my day like you always do!