Mailinglist Archive: opensuse-packaging (102 mails)

< Previous Next >
[opensuse-packaging] RPM %set_permissions problem
Squid RPM used to have /etc/permissions.d/squid with:

/var/cache/squid/ squid:root 750
/var/log/squid/ squid:root 750

This file is gone in Factory.

Now, I am trying to change both groups to squid (same mode):

My RPM has:

%verify(not user group mode) %attr(750,squid,squid) %dir /var/cache/squid/
%verify(not user group mode) %attr(750,squid,squid) %dir /var/log/squid/

But when I upgrade from an older version that still has the snippet,
new ownership is lost, because when chkstat runs in %post,
/etc/permissions.d/squid is present and mangles what is configured by

RPM deletes /etc/permissions.d/squid after %preun, when is too late.

Any help appreciated.
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups