Seite 1 von 1

Bug in setup.opsiscript vom Agent

Verfasst: 13 Sep 2016, 10:13
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

Re: Bug in setup.opsiscript vom Agent

Verfasst: 14 Sep 2016, 09:34
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