Bug in setup.opsiscript vom Agent

Antworten
Benutzeravatar
TheNavy
Beiträge: 23
Registriert: 30 Apr 2015, 08:20
Wohnort: Siegerland

Bug in setup.opsiscript vom Agent

Beitrag von TheNavy »

Hallo zusammen,

Ich glaube im setup.opsiscript ist noch ein Bug.

Zeile 511-515 des Scripts:

Code: Alles auswählen

comment "is there a custom sub file ..."
if fileexists("%ScriptPath%\custom\custom.opsiscript")
	comment "Start the custom sub file ..."
	sub fileexists("%ScriptPath%\custom\custom.opsiscript")
endif
Baue ich jetzt bei mir ein custom.opsiscript ein schlägt dies fehl, da in Zeile 515 ein "fileexists" zu viel ist. Ändert man also den Code:

sub fileexists("%ScriptPath%\custom\custom.opsiscript") -> sub "%ScriptPath%\custom\custom.opsiscript"

Code: Alles auswählen

comment "is there a custom sub file ..."
if fileexists("%ScriptPath%\custom\custom.opsiscript")
	comment "Start the custom sub file ..."
	sub "%ScriptPath%\custom\custom.opsiscript"
endif
funktioniert der aufruf des custom.opsiscripts ohne Probleme. Das fileexists ist da eh unnütz da die if-Schleife vorher ja dies schon abfragt.

Gruß
Richard
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Bug in setup.opsiscript vom Agent

Beitrag von n.wenselowski »

Hi Richard,

vielen Dank für den Report!

Einen hoffentlich funktionierenden opsi-client-agent gibt es mit Version 4.0.7.7-3 jetzt in experimental.


Gruß

Niko

Code: Alles auswählen

import OPSI
Antworten