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

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