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