opsi-script-nogui

vincent.rousseau
Beiträge: 2
Registriert: 13 Okt 2017, 14:21

opsi-script-nogui

Beitragvon vincent.rousseau » 13 Okt 2017, 15:21

I try to make an opsi product to make the default user a sudoer :
https://gist.github.com/anonymous/fc05a ... 56763bb9d7

It works when I use it with 'opsi-script' but not with 'opsi-script-nogui'.
When I call 'opsi-script-nogui setup.ins' there is no log generated and it just return thing that 'opsi-script-nogui -h'.
Did I do something wrong ?

Because I want to call it in the setup_after_install of the ubuntu image for now it is not working.
Thanks in advance.

Benutzeravatar
n.wenselowski
uib-Team
Beiträge: 3148
Registriert: 04 Apr 2013, 12:15

Re: opsi-script-nogui

Beitragvon n.wenselowski » 16 Okt 2017, 16:26

Hi,

you need to specify the file to execute through -batch:

Code: Alles auswählen

opsi-script-nogui -batch your.opsiscript this-will-be-your-logfile.log



Kind regards

Niko
opsi development - uib gmbh
For productive opsi installations we recommend support contracts.