socsvn commit: r238239 - soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport

tzabal at FreeBSD.org tzabal at FreeBSD.org
Sun Jun 24 17:15:52 UTC 2012


Author: tzabal
Date: Sun Jun 24 17:15:50 2012
New Revision: 238239
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238239

Log:
  Change the directory that reports arrive in the server from /home/reporter to /var/spool/crashreports

Modified:
  soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh

Modified: soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh
==============================================================================
--- soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh	Sun Jun 24 16:56:48 2012	(r238238)
+++ soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport/crashreport.sh	Sun Jun 24 17:15:50 2012	(r238239)
@@ -155,7 +155,8 @@
 
 ## Send the report to the Central Collector machine
 user="reporter"
-hostname="akcrs.dyndns.org"
+host="akcrs.dyndns.org"
+file="/var/spool/crashreports"
 
 # Host public key
 host_public_key_file=`mktemp /tmp/crashreport.XXXXXX`
@@ -194,7 +195,7 @@
 -----END RSA PRIVATE KEY-----" > ${user_private_key_file}
 
 scp -o GlobalKnownHostsFile="${host_public_key_file}" -o BatchMode=yes \
- -i "${user_private_key_file}" -q "${report}" "${user}@${hostname}:"
+ -i "${user_private_key_file}" -q "${report}" "${user}@${host}:${file}"
 
 if [ $? -ne 0 ]; then
 	error 'An error occurred while sending the report.'


More information about the svn-soc-all mailing list