Whamcloud - gitweb
LU-12342 spec: mark lsvcgss as a config file in the rpm 78/34978/3
authorGötz Waschk <goetz.waschk@desy.de>
Tue, 28 May 2019 06:48:02 +0000 (08:48 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 1 Jun 2019 03:55:41 +0000 (03:55 +0000)
The file /etc/sysconfig/lsvcgss shouldn't be overwritten on package
upgrades.

Signed-off-by: Götz Waschk <goetz.waschk@desy.de>
Change-Id: I3fa0a3a5a06d9e59699d23e652329365f38fd028
Reviewed-on: https://review.whamcloud.com/34978
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre.spec.in

index d40c56d..82afc24 100644 (file)
@@ -424,7 +424,7 @@ echo '%{_sysconfdir}/init.d/lustre' >>lustre.files
 echo '%{_sysconfdir}/sysconfig/lustre' >>lustre.files
 %if %{with gss_keyring}
 echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files
 echo '%{_sysconfdir}/sysconfig/lustre' >>lustre.files
 %if %{with gss_keyring}
 echo '%{_sysconfdir}/init.d/lsvcgss' >>lustre.files
-echo '%{_sysconfdir}/sysconfig/lsvcgss' >>lustre.files
+echo '%config(noreplace) %{_sysconfdir}/sysconfig/lsvcgss' >>lustre.files
 %endif
 %endif
 
 %endif
 %endif