Accepting request 1041910 from home:schubi2:pam_usr_etc

- Migration PAM settings to /usr/etc: Fixed posttrans.
  Should only be used for TW.

OBS-URL: https://build.opensuse.org/request/show/1041910
OBS-URL: https://build.opensuse.org/package/show/Printing/cups?expand=0&rev=394
This commit is contained in:
Johannes Meixner 2022-12-12 11:34:08 +00:00 committed by Git OBS Bridge
parent 8fb74de07c
commit d86324932f
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Dec 9 16:58:55 UTC 2022 - Stefan Schubert <schubi@suse.com>
- Migration PAM settings to /usr/etc: Fixed posttrans.
Should only be used for TW.
-------------------------------------------------------------------
Thu Dec 8 14:30:12 UTC 2022 - Stefan Schubert <schubi@suse.com>

View File

@ -571,10 +571,12 @@ for u in cups.service cups.socket cups.path; do
systemctl --quiet disable $u 2>/dev/null || :
fi
done
%if 0%{?suse_version} > 1500
# Migration to /usr/etc, restore just created .rpmsave
for i in pam.d/cups ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
done
%endif
exit 0
%post -n libcups2 -p /sbin/ldconfig