~percona-toolkit-dev/percona-toolkit/pt-table-sync-binlog-format-only-if-not-statement

« back to all changes in this revision

Viewing changes to lib/bash/collect_system_info.sh

MergeĀ lp:~percona-toolkit-dev/percona-toolkit/fix-945079-tmpdir-should-use-TEMP

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
   local ip_minus_s_file="$1"
184
184
 
185
185
   if [ "$CMD_ETHTOOL" ]; then
186
 
      local tempfile="$TMPDIR/ethtool_output_temp"
 
186
      local tempfile="$PT_TMPDIR/ethtool_output_temp"
187
187
      # For each entry in the ip -s link dump, check if itu starts with a number.
188
188
      # If it does, print the second field. Then remove the colon and everything
189
189
      # following that. Then skip what are usually interfaces.
298
298
   local dmesg_file="$2"
299
299
   local lspci_file="$3"
300
300
 
301
 
   local tempfile="$TMPDIR/find_virtualziation.tmp"
 
301
   local tempfile="$PT_TMPDIR/find_virtualziation.tmp"
302
302
 
303
303
   local virt=""
304
304
   if [ -s "$dmesg_file" ]; then
395
395
      if [ "${platform}" = "Linux" ]; then
396
396
         cmd="df -h -P"
397
397
      fi
398
 
      $cmd  | sort > "$TMPDIR/mounted_fs_info.tmp"
399
 
      mount | sort | join "$TMPDIR/mounted_fs_info.tmp" -
 
398
      $cmd  | sort > "$PT_TMPDIR/mounted_fs_info.tmp"
 
399
      mount | sort | join "$PT_TMPDIR/mounted_fs_info.tmp" -
400
400
   fi
401
401
}
402
402
 
409
409
   local dmesg_file="$1"
410
410
   local lspci_file="$2"
411
411
 
412
 
   local tempfile="$TMPDIR/raid_controller.tmp"
 
412
   local tempfile="$PT_TMPDIR/raid_controller.tmp"
413
413
 
414
414
   local controller=""
415
415
   if [ -s "$lspci_file" ]; then