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

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