a3470f
From 8b9f3413dfc9f319f5d7476132bbbfa390819f26 Mon Sep 17 00:00:00 2001
a3470f
From: Jiffin Tony Thottan <jthottan@redhat.com>
a3470f
Date: Wed, 28 Feb 2018 09:17:09 +0530
a3470f
Subject: [PATCH 173/180] packaging : adding missed part from 5eed664 while
a3470f
 backporting to downstream
a3470f
a3470f
Label : DOWNSTREAM ONLY
a3470f
a3470f
Change-Id: I0ece0adb3b2c85a5ced9c1850ee783d8952a8dec
a3470f
BUG: 1472445
a3470f
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/131344
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
Reviewed-by: Milind Changire <mchangir@redhat.com>
a3470f
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
a3470f
---
a3470f
 glusterfs.spec.in | 11 ++++++++++-
a3470f
 1 file changed, 10 insertions(+), 1 deletion(-)
a3470f
a3470f
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
a3470f
index 8379f64..ca36e65 100644
a3470f
--- a/glusterfs.spec.in
a3470f
+++ b/glusterfs.spec.in
a3470f
@@ -826,8 +826,13 @@ install -D -p -m 0644 extras/glusterfs-logrotate \
a3470f
     %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs
a3470f
 
a3470f
 # ganesha ghosts
a3470f
+%if ( ! 0%{?_build_server} )
a3470f
 mkdir -p %{buildroot}%{_sysconfdir}/ganesha
a3470f
 touch %{buildroot}%{_sysconfdir}/ganesha/ganesha-ha.conf
a3470f
+mkdir -p %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
a3470f
+touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
a3470f
+touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
a3470f
+%endif
a3470f
 
a3470f
 %if ( 0%{!?_without_georeplication:1} )
a3470f
 mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
a3470f
@@ -1342,7 +1347,11 @@ exit 0
a3470f
 %{_prefix}/lib/ocf/resource.d/heartbeat/*
a3470f
 %{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
a3470f
 %{_sysconfdir}/ganesha/ganesha-ha.conf.sample
a3470f
-%ghost %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
a3470f
+%ghost      %attr(0644,-,-) %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
a3470f
+%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha
a3470f
+%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/exports
a3470f
+%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
a3470f
+%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf
a3470f
 %endif
a3470f
 
a3470f
 %if ( 0%{?_build_server} )
a3470f
-- 
a3470f
1.8.3.1
a3470f