9f5ccc
From 27d69d8927a946562aef08a6edfee38b9998f96d Mon Sep 17 00:00:00 2001
9f5ccc
From: Anoop C S <anoopcs@redhat.com>
9f5ccc
Date: Wed, 12 Jun 2019 15:41:27 +0530
9f5ccc
Subject: [PATCH 325/335] extras/hooks: Install and package newly added post
9f5ccc
 add-brick hook script
9f5ccc
9f5ccc
Previously a new SELinux hook script was added as a post add-brick
9f5ccc
operation to label new brick paths. But the change failed to install
9f5ccc
and package new script. Therefore making necessary changes to Makefile
9f5ccc
and spec file to get it installed and packaged.
9f5ccc
9f5ccc
Backport of https://review.gluster.org/c/glusterfs/+/22856
9f5ccc
9f5ccc
Change-Id: I67b8f4982c2783c34a4bc749fb4387c19a038225
9f5ccc
BUG: 1686800
9f5ccc
Signed-off-by: Anoop C S <anoopcs@redhat.com>
9f5ccc
Reviewed-on: https://code.engineering.redhat.com/gerrit/185856
9f5ccc
Tested-by: RHGS Build Bot <nigelb@redhat.com>
9f5ccc
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
9f5ccc
---
9f5ccc
 extras/hook-scripts/add-brick/post/Makefile.am | 4 ++--
9f5ccc
 glusterfs.spec.in                              | 1 +
9f5ccc
 2 files changed, 3 insertions(+), 2 deletions(-)
9f5ccc
9f5ccc
diff --git a/extras/hook-scripts/add-brick/post/Makefile.am b/extras/hook-scripts/add-brick/post/Makefile.am
9f5ccc
index bfc0c1c..9b236df 100644
9f5ccc
--- a/extras/hook-scripts/add-brick/post/Makefile.am
9f5ccc
+++ b/extras/hook-scripts/add-brick/post/Makefile.am
9f5ccc
@@ -1,6 +1,6 @@
9f5ccc
-EXTRA_DIST = disabled-quota-root-xattr-heal.sh S13create-subdir-mounts.sh
9f5ccc
+EXTRA_DIST = disabled-quota-root-xattr-heal.sh S10selinux-label-brick.sh S13create-subdir-mounts.sh
9f5ccc
 
9f5ccc
 hookdir = $(GLUSTERD_WORKDIR)/hooks/1/add-brick/post/
9f5ccc
 if WITH_SERVER
9f5ccc
-hook_SCRIPTS = disabled-quota-root-xattr-heal.sh S13create-subdir-mounts.sh
9f5ccc
+hook_SCRIPTS = disabled-quota-root-xattr-heal.sh S10selinux-label-brick.sh S13create-subdir-mounts.sh
9f5ccc
 endif
9f5ccc
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
9f5ccc
index eeadb65..91180db 100644
9f5ccc
--- a/glusterfs.spec.in
9f5ccc
+++ b/glusterfs.spec.in
9f5ccc
@@ -1447,6 +1447,7 @@ exit 0
9f5ccc
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick
9f5ccc
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post
9f5ccc
             %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/disabled-quota-root-xattr-heal.sh
9f5ccc
+            %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/S10selinux-label-brick.sh
9f5ccc
             %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/S13create-subdir-mounts.sh
9f5ccc
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre
9f5ccc
             %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre/S28Quota-enable-root-xattr-heal.sh
9f5ccc
-- 
9f5ccc
1.8.3.1
9f5ccc