Blame SOURCES/bz1303037-2-portblock.patch

937446
From 8ac05986ac7ef354456253edbd22cbb4a2d96e90 Mon Sep 17 00:00:00 2001
937446
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
937446
Date: Fri, 16 Sep 2016 10:19:38 +0200
937446
Subject: [PATCH] portblock: create tickle_dir if it doesnt exist
937446
937446
---
937446
 heartbeat/portblock | 4 ++--
937446
 1 file changed, 2 insertions(+), 2 deletions(-)
937446
937446
diff --git a/heartbeat/portblock b/heartbeat/portblock
937446
index c480954..c97488b 100755
937446
--- a/heartbeat/portblock
937446
+++ b/heartbeat/portblock
937446
@@ -466,8 +466,7 @@ IptablesValidateAll()
937446
 		exit $OCF_ERR_CONFIGURED
937446
 	fi
937446
 	if [ ! -d "$OCF_RESKEY_tickle_dir" ]; then
937446
-		ocf_log err "The tickle dir doesn't exist!"
937446
-		exit $OCF_ERR_INSTALLED	  	
937446
+		mkdir -p $OCF_RESKEY_tickle_dir
937446
 	fi
937446
   fi
937446
 
937446
@@ -534,6 +533,7 @@ reset_local_on_unblock_stop=$OCF_RESKEY_reset_local_on_unblock_stop
937446
 
937446
 case $1 in
937446
   start)	
937446
+			IptablesValidateAll
937446
 			IptablesStart $protocol $portno $ip $action 
937446
 			;;
937446