Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2012 17:15:50 +0000
From:      tzabal@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r238239 - soc2012/tzabal/client-side/akcrs-head/usr.sbin/crashreport
Message-ID:  <20120624171550.A328C1065678@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120624171550.A328C1065678>