Hi. Doing some more tests i've found that when I try to remove the ldirectord package on CentOS 7 I get the following error:
error: %preun(ldirectord-3.9.5-4.1.x86_64): macro de ejecución de guión fallido, estado de terminación 1 Error in PREUN scriptlet in rpm package ldirectord-3.9.5-4.1.x86_64 Aviso: scriptlet o algún otro tipo de error no fatal ha ocurrido durante la transacción.
I've listed the package scriptlets:
[druiz.ext@galeno ~]$ rpm -q --scripts ldirectord postinstall scriptlet (using /bin/sh): /sbin/chkconfig --add ldirectord preuninstall scriptlet (using /bin/sh): /sbin/chkconfig --del ldirectord postuninstall program: /sbin/ldconfig
As you can see, the package is still using the init.d scripts for uninstalling the service, but on CentOS7 the service it's installed as a Systemd service, so the preuninstall scriptlet exits with error, and the package can't be uninstalled. To do a successful package erase it's mandatory to use the '--setopt=tsflags=noscripts' flag when executing yum, so that it ignores the preuninstall scriptlet. It'll be great to update the install/uninstall scriptlets in ldirectord package, probably just erasing them it's the correct solution, as the Systemd service has been correctly installed/removed from the system without manual configuration after installing/removing the package. Thanks in advanced. David Ruiz Estefanía Administrador de Sistemas Centro de Alta Disponibilidad Correo: cad.ext@riojasalud.es Teléfono: +34 941 298 000 - Ext. 84743 Móvil: +34 669 432 808 ________________________________ GOBIERNO DE LA RIOJA AVISO LEGAL: La información contenida en este mensaje es confidencial y está destinada a ser leída sólo por la persona a la que va dirigida. Si Ud. no es el destinatario señalado le informamos que está prohibida, y puede ser ilegal, cualquier divulgación o reproducción de este mensaje. Antes de imprimir este e-mail piense bien si es necesario hacerlo. -- To unsubscribe, e-mail: opensuse-ha+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ha+owner@opensuse.org