Package /etc/default/lldpd as a config file

The lldpd package currently does not package the /etc/default/lldpd
file as a config file, but it is modified at runtime by a puppet
manifest. As a result, if the lldpd package is updated on a system, it
would overwrite the modified file with the version from the package.

This update adds the %config(noreplace) to lldpd.spec for this file.

Change-Id: I82e62bdcac9ea07a3eaea0dfca5b1037b4b392d6
Partial-Bug: 1850695
Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
Don Penney 2019-10-30 16:22:55 -04:00
parent 7173fb6cf5
commit b00d7ff68c
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
COPY_LIST="$CGCS_BASE/downloads/lldpd-0.9.0.tar.gz \ COPY_LIST="$CGCS_BASE/downloads/lldpd-0.9.0.tar.gz \
$PKG_BASE/lldpd-0.9.0/* \ $PKG_BASE/lldpd-0.9.0/* \
$PKG_BASE/centos/files/*" $PKG_BASE/centos/files/*"
TIS_PATCH_VER=4 TIS_PATCH_VER=5

View File

@ -311,7 +311,7 @@ rm -rf $RPM_BUILD_ROOT
%else %else
%{_unitdir}/lldpd.service %{_unitdir}/lldpd.service
%endif %endif
%{_sysconfdir}/default/lldpd %config(noreplace) %{_sysconfdir}/default/lldpd
%config(noreplace) %{_sysconfdir}/lldpd.conf %config(noreplace) %{_sysconfdir}/lldpd.conf
%{_initrddir}/i40e-lldp-configure.sh %{_initrddir}/i40e-lldp-configure.sh