Cannot remove package property

Antworten
lloydsystems
Beiträge: 22
Registriert: 03 Feb 2013, 09:46

Cannot remove package property

Beitrag von lloydsystems »

Hi,

I have a package that has several boolean properties setting installation options. The package has been installed to a number of clients. I am trying to remove one of these properties but I am having trouble getting rid of it completely.

I edited the OPSI/control file to delete the unwanted property and rebuilt the package with opsi-makeproductfile, then reinstalled with opsi-package-manager -i prod_ver.opsi. If I select the product in opsi config editor and look under 'configuration for client' the deleted property is gone. But, if I click on 'set client values to server defaults' I get an error saying 'key not valid' with the name of the deleted property. So it's still in the server config somewhere.

I have tried removing the package with opsi-package-manager -r prod and then reinstalling but this does not help. If someone could tell me how to get rid of this product property I would appreciate it. Hopefully it does not require some ugly SQL hack.

Regards,

Stephen
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: Cannot remove package property

Beitrag von wolfbardo »

try

Code: Alles auswählen

backup your config

with opsi-backup
and then

Code: Alles auswählen

opsi-setup --cleanup-backend
regards,
Bardo Wolf


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


lloydsystems
Beiträge: 22
Registriert: 03 Feb 2013, 09:46

Re: Cannot remove package property

Beitrag von lloydsystems »

Yes, 'cleanup-backend' seems to have done the trick.
Thanks very much.

Stephen
Antworten