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

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