Is it possible to set a status in configed
Verfasst: 20 Feb 2013, 13:51
Hi
Is it possible to make a script change the status in opsi-configed after it has been run?
I have a package (vmwaretools) which, during the setup-phase, checks to see if the PC is virtual or not.
If the PC is virtual it installs the package, and sets the status to "installed".
However - if the PC is not virtual, it doesnt install the package, but stills sets the status to "installed".
Its a bit hard to explain, but i have an example of what i would like to happen:
Is it possible to make a script change the status in opsi-configed after it has been run?
I have a package (vmwaretools) which, during the setup-phase, checks to see if the PC is virtual or not.
If the PC is virtual it installs the package, and sets the status to "installed".
However - if the PC is not virtual, it doesnt install the package, but stills sets the status to "installed".
Its a bit hard to explain, but i have an example of what i would like to happen:
Code: Alles auswählen
DefStringList $list$
DefVar $PCModel$
Set $list$ = getOutStreamFromSection("DosInAnIcon_getmodel")
Set $PCModel$ = takeFirstStringContaining($list$,"VMware")
<more code>
if contains($PCModel$, "VMware")
install the program...
else
comment "The PC is not virtual! the program will not be installed"
setstatus "none"
endif