Fix error in PREIN scriptlet in rpm package samba-common

This commit is contained in:
Pavel Filipenský 2024-01-10 10:55:05 +01:00
parent e2dee495bf
commit ee4a8a4d01

View File

@ -147,7 +147,7 @@
%define samba_requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
%global samba_version 4.19.4
%global baserelease 1
%global baserelease 2
# This should be rc1 or %%nil
%global pre_release %nil
@ -244,6 +244,8 @@ Source18: samba-winbind-systemd-sysusers.conf
Source201: README.downgrade
Source202: samba.abignore
Requires(pre): /usr/sbin/groupadd
Requires(pre): %{name}-common = %{samba_depver}
Requires: %{name}-common = %{samba_depver}
Requires: %{name}-common-libs = %{samba_depver}
@ -1531,7 +1533,7 @@ export WINBINDD_DONT_LOG_STDOUT=1
%pre common
# This creates the group 'printadmin'
%sysusers_create_compat %{SOURCE16}
getent group printadmin >/dev/null || groupadd -r printadmin || :
%post common
%{?ldconfig}
@ -1602,11 +1604,11 @@ fi
%pre usershares
# This creates the group 'usershares'
%sysusers_create_compat %{SOURCE17}
getent group usershares >/dev/null || groupadd -r usershares || :
%pre winbind
# This creates the group 'wbpriv'
%sysusers_create_compat %{SOURCE18}
/usr/sbin/groupadd -g 88 wbpriv >/dev/null 2>&1 || :
%post winbind
%systemd_post winbind.service
@ -4471,6 +4473,10 @@ fi
%endif
%changelog
* Wed Jan 10 2024 Pavel Filipenský <pfilipen@redhat.com> - 4.19.4-2
- Fix error in PREIN scriptlet in rpm package samba-common
- related: RHEL-16483 - Update to version 4.19.4
* Tue Jan 09 2024 Pavel Filipenský <pfilipen@redhat.com> - 4.19.4-1
- resolves: RHEL-16483 - Update to version 4.19.4