opsi-script-nogui

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

opsi-script-nogui

Beitrag von vincent.rousseau »

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
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsi-script-nogui

Beitrag von n.wenselowski »

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

Code: Alles auswählen

import OPSI
Antworten