opsi-setup: conflicting options

Antworten
giner
Beiträge: 29
Registriert: 24 Sep 2014, 07:45

opsi-setup: conflicting options

Beitrag von giner »

Hello,

If we choose to patch samba config and sudoers while installing opsi then opsi-depotserver.postinst runs the following:

Code: Alles auswählen

/usr/bin/opsi-setup --init-current-config --auto-configure-samba --patch-sudoers-file
However "--patch-sudoers-file" overrides "--init-current-config" so init-current-config is ignored and finally we get this:

Code: Alles auswählen

[3] [Oct 15 10:36:48] [Errno 2] No such file or directory: '/var/lib/opsi/config/depots' (opsi-setup|571)
I suppose patch-sudoers-file should be a non-overriding option just the same as both --auto-configure-dhcpd and --auto-configure-samba.

Best regards,
Stanislav German-Evtushenko
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsi-setup: conflicting options

Beitrag von n.wenselowski »

Hello Stanislav,

good catch - thank you!
I created a ticket in our internal bugtracker for this. I am not sure if a fix for this will find it's way into 4.0.5. If not it will be in a later release.


With kind regards

Niko

Code: Alles auswählen

import OPSI
giner
Beiträge: 29
Registriert: 24 Sep 2014, 07:45

Re: opsi-setup: conflicting options

Beitrag von giner »

Hello Niko,

This one is not a cosmetic, would be great if it fit in with the new release.
Thank you!

Best regards,
Stanislav German-Evtushenko
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: opsi-setup: conflicting options

Beitrag von n.wenselowski »

Hello Stanislav,

we are currently testing a fix for this in our experimental repository.


With kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten