Description of problem: Samba package update is creating multiple entries of rhs-samba.conf in smb.conf ie. each samba update it is creating additional entries of "include = /etc/samba/rhs-samba.conf" in smb.conf where as it should just create one entry and if the entry is there it should more entries for subsequent updates. Issue is in the spec file of samba (rhs). The grep string should have been grep -vq "include = $RHSCONF" instead of grep -vq 'include = $RHSCONF' as below code snippet. %post # bug fix rhbz#1012711 SMBCONF="%{_sysconfdir}/samba/smb.conf" RHSCONF="%{_sysconfdir}/samba/rhs-samba.conf" if grep -vq 'include = $RHSCONF' $SMBCONF then Version-Release number of selected component (if applicable): samba-3.6.9-160.7.el6 How reproducible: Always Steps to Reproduce: 1. Install RHS with samba version samba-3.6.9-160.6.el6 and update samba package tosamba-3.6.9-160.7.el6 2. 3. Actual results: you can find two entries of include = /etc/samba/rhs-samba.conf Expected results: There should only one entry Additional info:
IMO this bug is a must fix bug for U2 because when we will update samba package in U2 (if any) it will create more entries and it will look ugly
Fixed with new samba build: samba-3.6.9-167.5.el6rhs
Please set priority.
Verified the bug with samba-common.x86_64 0:3.6.9-167.9.el6rhs (updated from samba-common.x86_64 0:3.6.9-167.8.el6rhs) and samba update is no more creating multiple entries. Hence marking this bug as verified.
Can you please review the doc text for technical accuracy?
Doc text is accurate.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0208.html