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