From ea4a9a4557f53d1998153c889487d7bc4d75ce712303097c10ecaa994a3c9d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 25 Aug 2015 09:42:29 +0000 Subject: [PATCH] - Do not actually replace the hostname if user already has something in there. Thanks to Takashi Iwai for spotting this OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=45 --- netcfg.changes | 6 ++++++ netcfg.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/netcfg.changes b/netcfg.changes index 4774c2f..02496b2 100644 --- a/netcfg.changes +++ b/netcfg.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 25 09:41:17 UTC 2015 - tchvatal@suse.com + +- Do not actually replace the hostname if user already has something + in there. Thanks to Takashi Iwai for spotting this + ------------------------------------------------------------------- Tue Aug 4 07:47:22 UTC 2015 - tchvatal@suse.com diff --git a/netcfg.spec b/netcfg.spec index 3d8b0cc..1374ee0 100644 --- a/netcfg.spec +++ b/netcfg.spec @@ -101,7 +101,7 @@ exit 0 %files %defattr(644,root,root,755) -%config %{_sysconfdir}/hostname +%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hostname %{_sysconfdir}/HOSTNAME %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/aliases %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/defaultdomain