Re: [ndctl PATCH] ndctl, rpm: Mark monitor.conf as a configuration file

2019-01-16 Thread Verma, Vishal L


On Mon, 2019-01-14 at 19:55 -0800, Dan Williams wrote:
> In case a user has made local modifications to
> /etc/ndctl/monitor.conf,
> instrument the spec file to not clobber those changes.
> 
> Cc: Qi Fuli 
> Signed-off-by: Dan Williams 
> ---
>  ndctl.spec.in |3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
Thanks, applied.
___
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm


[ndctl PATCH] ndctl, rpm: Mark monitor.conf as a configuration file

2019-01-14 Thread Dan Williams
In case a user has made local modifications to /etc/ndctl/monitor.conf,
instrument the spec file to not clobber those changes.

Cc: Qi Fuli 
Signed-off-by: Dan Williams 
---
 ndctl.spec.in |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ndctl.spec.in b/ndctl.spec.in
index 26396d4abad7..bc4d65c1f988 100644
--- a/ndctl.spec.in
+++ b/ndctl.spec.in
@@ -117,9 +117,10 @@ make check
 %{_bindir}/ndctl
 %{_mandir}/man1/ndctl*
 %{bashcompdir}/
-%{_sysconfdir}/ndctl/monitor.conf
 %{_unitdir}/ndctl-monitor.service
 
+%config(noreplace) %{_sysconfdir}/ndctl/monitor.conf
+
 %files -n daxctl
 %defattr(-,root,root)
 %license util/COPYING licenses/BSD-MIT licenses/CC0

___
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm