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