Seite 1 von 1

Help with run WInst script

Verfasst: 08 Dez 2009, 16:40
von Shinigami.Ric
Hi. maybe my question sounds very native, but: how run WInst script in client machine? In OPSI Manual at 3.5.3 write:

Code: Alles auswählen

method createLocalBootProduct <productId>, <name>, <productVersion>,
<packetVersion>, licenseRequired=0, setupScript="", uninstallScript="",
updateScript="", alwaysScript="", onceScript="", priority=10,
description="", advice="", productClassNames=('localBoot')
Creates a new localBoot product (wInst-Product).
This is right command to create a new package? Is this command right then i enter something like that:

Code: Alles auswählen

opsi-admin method createLocalBootProduct 1 setdns 0.0.1 0.0.1 licenseRequired=0 setupScript=set_dns.ins, priority=10 description=dns advice=once productClassNames='localBoot'
Result:
Traceback:
line 1447 in '<module>' in file '/usr/bin/opsi-admin'
line 434 in 'exit' in file '/usr/bin/opsi-admin'
==>>> Failed to execute 'method createLocalBootProduct 1 setdns 0.0.1 0.0.1 licenseRequired=0 setupScript=set_dns_efir.ins priority=10 description=dns advice=once productClassNames=localboot': 'NoneType' object has no attribute 'split'
ERROR: Failed to execute 'method createLocalBootProduct 1 setdns 0.0.1 0.0.1 licenseRequired=0 setupScript=set_dns_efir.ins priority=10 description=dns advice=once productClassNames=localboot': 'NoneType' object has no attribute 'split'
Please write me a small example for create new opsi package or tell me where i can see it. Thanks.

Re: Help with run WInst script

Verfasst: 08 Dez 2009, 18:28
von matth46
RTFM (SCNR): http://sourceforge.net/projects/opsi/fi ... f/download

Page 95 et sequentes ("6.2.3. Creating an opsi package")

If you prefer to create a new localboot package through opsi-admin method calls, then you should do it right:
method createLocalBootProduct <productId>, <name>, <productVersion>, <packetVersion>, licenseRequired=0, setupScript="", uninstallScript="", updateScript="", alwaysScript="", onceScript="", priority=10, description="", advice="", productClassNames=('localBoot')
Also consider to use those double quotes... ;)


But I think it's much easier to create a new opsi package as mentioned in the manual.

Re: Help with run WInst script

Verfasst: 09 Dez 2009, 08:32
von Shinigami.Ric
Thanks a lot. All works.