Blame SOURCES/bz1265426-3-fence_scsi_hard.patch

d5f3d8
From c4de19f19121ee44cd9ffb4a307f386ea2b13efc Mon Sep 17 00:00:00 2001
d5f3d8
From: Marek 'marx' Grac <mgrac@redhat.com>
d5f3d8
Date: Fri, 25 Sep 2015 11:14:08 +0200
d5f3d8
Subject: [PATCH 3/4] fence_scsi: Install fence_scsi_check_hardreboot and
d5f3d8
 fence_scsi_check
d5f3d8
d5f3d8
---
d5f3d8
 fence/agents/scsi/Makefile.am   | 10 ++++++++--
d5f3d8
 fence/agents/scsi/fence_scsi.py |  2 ++
d5f3d8
 2 files changed, 10 insertions(+), 2 deletions(-)
d5f3d8
d5f3d8
diff --git a/fence/agents/scsi/Makefile.am b/fence/agents/scsi/Makefile.am
d5f3d8
index 5315215..ad65d1b 100644
d5f3d8
--- a/fence/agents/scsi/Makefile.am
d5f3d8
+++ b/fence/agents/scsi/Makefile.am
d5f3d8
@@ -7,7 +7,7 @@ SRC			= $(TARGET).py
d5f3d8
 EXTRA_DIST		= $(SRC)
d5f3d8
 
d5f3d8
 scsidatadir		= $(CLUSTERDATA)
d5f3d8
-scsidata_SCRIPTS	= fence_scsi_check.pl
d5f3d8
+scsidata_SCRIPTS	= fence_scsi_check fence_scsi_check_hardreboot fence_scsi_check.pl
d5f3d8
 
d5f3d8
 sbin_SCRIPTS		= $(TARGET)
d5f3d8
 
d5f3d8
@@ -18,9 +18,15 @@ FENCE_TEST_ARGS         = -k 1
d5f3d8
 fence_scsi_check.pl: $(TARGET)
d5f3d8
 	cp $^ $@
d5f3d8
 
d5f3d8
+fence_scsi_check: $(TARGET)
d5f3d8
+	cp $^ $@
d5f3d8
+
d5f3d8
+fence_scsi_check_hardreboot: $(TARGET)
d5f3d8
+	cp $^ $@
d5f3d8
+
d5f3d8
 include $(top_srcdir)/make/fencebuild.mk
d5f3d8
 include $(top_srcdir)/make/fenceman.mk
d5f3d8
 include $(top_srcdir)/make/agentpycheck.mk
d5f3d8
 
d5f3d8
 clean-local: clean-man
d5f3d8
-	rm -f $(TARGET) $(SYMTARGET) fence_scsi_check.pl
d5f3d8
+	rm -f $(TARGET) $(SYMTARGET) $(scsidata_SCRIPTS)
d5f3d8
diff --git a/fence/agents/scsi/fence_scsi.py b/fence/agents/scsi/fence_scsi.py
d5f3d8
index ff34721..c13d4ed 100644
d5f3d8
--- a/fence/agents/scsi/fence_scsi.py
d5f3d8
+++ b/fence/agents/scsi/fence_scsi.py
d5f3d8
@@ -426,6 +426,8 @@ def main():
d5f3d8
 	#fence_scsi_check
d5f3d8
 	if os.path.basename(sys.argv[0]) == "fence_scsi_check.pl":
d5f3d8
 		sys.exit(scsi_check())
d5f3d8
+	elif os.path.basename(sys.argv[0]) == "fence_scsi_check":
d5f3d8
+		sys.exit(scsi_check())
d5f3d8
 	elif os.path.basename(sys.argv[0]) == "fence_scsi_check_hardreboot":
d5f3d8
 		sys.exit(scsi_check(True))
d5f3d8
 
d5f3d8
-- 
d5f3d8
2.4.3
d5f3d8