Blame SOURCES/bz1817439-use-safe-temp-file-location.patch

bdc612
diff -uNr a/heartbeat/ClusterMon b/heartbeat/ClusterMon
bdc612
--- a/heartbeat/ClusterMon	2018-06-29 14:05:02.000000000 +0200
bdc612
+++ b/heartbeat/ClusterMon	2020-03-27 12:09:23.636845893 +0100
bdc612
@@ -86,7 +86,7 @@
bdc612
 PID file location to ensure only one instance is running
bdc612
 </longdesc>
bdc612
 <shortdesc lang="en">PID file</shortdesc>
bdc612
-<content type="string" default="/tmp/ClusterMon_${OCF_RESOURCE_INSTANCE}.pid" />
bdc612
+<content type="string" default="${HA_RSCTMP}/ClusterMon_${OCF_RESOURCE_INSTANCE}.pid" />
bdc612
 </parameter>
bdc612
 
bdc612
 <parameter name="htmlfile" unique="1" required="0">
bdc612
@@ -94,7 +94,7 @@
bdc612
 Location to write HTML output to.
bdc612
 </longdesc>
bdc612
 <shortdesc lang="en">HTML output</shortdesc>
bdc612
-<content type="string" default="/tmp/ClusterMon_${OCF_RESOURCE_INSTANCE}.html" />
bdc612
+<content type="string" default="${HA_RSCTMP}/ClusterMon_${OCF_RESOURCE_INSTANCE}.html" />
bdc612
 </parameter>
bdc612
 </parameters>
bdc612
 
bdc612
@@ -233,8 +233,8 @@
bdc612
 fi
bdc612
 
bdc612
 : ${OCF_RESKEY_update:="15000"}
bdc612
-: ${OCF_RESKEY_pidfile:="/tmp/ClusterMon_${OCF_RESOURCE_INSTANCE}.pid"}
bdc612
-: ${OCF_RESKEY_htmlfile:="/tmp/ClusterMon_${OCF_RESOURCE_INSTANCE}.html"}
bdc612
+: ${OCF_RESKEY_pidfile:="${HA_RSCTMP}/ClusterMon_${OCF_RESOURCE_INSTANCE}.pid"}
bdc612
+: ${OCF_RESKEY_htmlfile:="${HA_RSCTMP}/ClusterMon_${OCF_RESOURCE_INSTANCE}.html"}
bdc612
 
bdc612
 OCF_RESKEY_update=`expr $OCF_RESKEY_update / 1000`
bdc612
 
bdc612
diff -uNr a/heartbeat/sapdb-nosha.sh b/heartbeat/sapdb-nosha.sh
bdc612
--- a/heartbeat/sapdb-nosha.sh	2018-06-29 14:05:02.000000000 +0200
bdc612
+++ b/heartbeat/sapdb-nosha.sh	2020-03-27 12:07:16.183958164 +0100
bdc612
@@ -740,5 +740,5 @@
bdc612
 }
bdc612
 
bdc612
 # Set a tempfile and make sure to clean it up again
bdc612
-TEMPFILE="/tmp/SAPDatabase.$$.tmp"
bdc612
-trap trap_handler INT TERM
bdc612
\ No newline at end of file
bdc612
+TEMPFILE="${HA_RSCTMP}/SAPDatabase.$$.tmp"
bdc612
+trap trap_handler INT TERM