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

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