Accepting request 595751 from home:aaptel:samba-bsc1088574-fixdameon
- Use new foreground execution flags for systemd samba daemons; (bsc#1088574); (bsc#1071090); (bsc#1065551); + Add %post scriptlet to clear old sysconfig flags - Update vendor-files to commit 880b3e7. + Set samba sysconfig template variables to "" + Add required daemon flags directly to systemd unit OBS-URL: https://build.opensuse.org/request/show/595751 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=595
This commit is contained in:
parent
c72ef26ec8
commit
d5d8b11391
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 11 14:55:09 UTC 2018 - aaptel@suse.com
|
||||
|
||||
- Use new foreground execution flags for systemd samba daemons;
|
||||
(bsc#1088574); (bsc#1071090); (bsc#1065551);
|
||||
+ Add %post scriptlet to clear old sysconfig flags
|
||||
- Update vendor-files to commit 880b3e7.
|
||||
+ Set samba sysconfig template variables to ""
|
||||
+ Add required daemon flags directly to systemd unit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 26 22:37:15 UTC 2018 - jengelh@inai.de
|
||||
|
||||
|
15
samba.spec
15
samba.spec
@ -58,7 +58,7 @@
|
||||
%define build_ceph 1
|
||||
%endif
|
||||
%endif
|
||||
%define vendor_files_git_vers git.9c6e2d0
|
||||
%define vendor_files_git_vers git.880b3e7
|
||||
|
||||
%define talloc_version 2.1.10
|
||||
%define tevent_version 0.9.34
|
||||
@ -1367,6 +1367,19 @@ getent group ntadmin >/dev/null || groupadd -g 71 -o -r ntadmin || :
|
||||
|
||||
%post
|
||||
%if 0%{?suse_version} > 1220
|
||||
|
||||
# bsc#1088574; bsc#1071090; bsc#1065551
|
||||
if [ -f %{_unitdir}/smb.service ] && \
|
||||
grep -qE '^ExecStart=.*smbd.*foreground.*no-process-group' %{_unitdir}/smb.service && \
|
||||
[ -f %{_sysconfdir}/sysconfig/samba ] && \
|
||||
grep -q -- '-D' %{_sysconfdir}/sysconfig/samba
|
||||
then
|
||||
echo using foreground execution for samba systemd units
|
||||
echo overwriting samba sysconfig to remove daemon related flags...
|
||||
sed -i 's/-D *//g' %{_sysconfdir}/sysconfig/samba
|
||||
sed -i 's/-F *//g' %{_sysconfdir}/sysconfig/samba
|
||||
fi
|
||||
|
||||
%if %{with_dc}
|
||||
%service_add_post nmb.service smb.service samba-ad-dc.service
|
||||
%else
|
||||
|
3
vendor-files-git.880b3e7.tar.bz2
Normal file
3
vendor-files-git.880b3e7.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:42c430e99a5f20d230ff088a3a834f11068d234a1e31ed5a5c27ae77caa023f6
|
||||
size 54269
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec33aa483190ae1494e25b8e1bb867580028166ccdefdabf04dc9b92f463b72e
|
||||
size 54217
|
Loading…
Reference in New Issue
Block a user