samba-server: call tmpfiles_create in post script to fix file not existing when called in pre script [release 4.21.2-2mamba;Fri Dec 06 2024]

This commit is contained in:
Silvan Calarco 2024-12-06 19:25:17 +01:00
parent 8ab1bba673
commit a2624d6db8

View File

@ -1,6 +1,6 @@
Name: samba
Version: 4.21.2
Release: 1mamba
Release: 2mamba
Summary: Samba provides seamless file and print services to SMB/CIFS clients
Group: System/Servers
Vendor: openmamba
@ -315,10 +315,10 @@ mkdir %{buildroot}%{_localstatedir}/lib/samba/usershares
%pre server
%sysusers_create_package samba-server %{SOURCE2}
%tmpfiles_create samba.conf
:
%post server
%tmpfiles_create samba.conf
if [ $1 -gt 1 ]; then
# remove UTF-8 unix charset definition (leave default) to fix smb4k
sed -i "/unix charset = LOCALE/d" %{_sysconfdir}/samba/smb.conf
@ -588,6 +588,9 @@ fi
%{_mandir}/man8/winbindd.*
%changelog
* Fri Dec 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.21.2-2mamba
- samba-server: call tmpfiles_create in post script to fix file not existing when called in pre script
* Tue Nov 26 2024 Automatic Build System <autodist@openmamba.org> 4.21.2-1mamba
- automatic version update by autodist