My short term hack is to keep the last RPM around somewhere else, and check 
against the Oracle URL redirect:

#!/bin/bash

LOCAL=`ls /var/www/html/kickstart | grep jre-8`
URL="http://javadl.sun.com/webapps/download/AutoDL?BundleId=106239";
GET=`curl -Is $URL | grep Location`
FILE=`echo $GET | sed -e "s/.*\(jre-8.*rpm\).*ext=.*/\1/"`

if [ $LOCAL == $FILE ]; then
  exit
else
  echo "There is an Oracle JRE update available" | /bin/mail -s "java 
version check" root
fi



>
>
On Thursday, April 23, 2015 at 2:43:18 PM UTC-7, Mark Moorcroft wrote:
>
> The elasticsearch wisdom seems to be to use the Oracle JRE. But has anyone 
> figured out how to keep the Oracle JRE updated on a standalone elastic 
> server that never runs a browser. I can't seem to find any documentation 
> about this. And I can't find any reference to a java command that checks 
> for pending updates on the command line. I don't see any sign that the 
> linux JRE has a control panel, and according to the documentation I found 
> Windows is the only platform the supports auto-update. Obviously if you use 
> the CentOS yum installed java then yum update handles the updates.
>

-- 
You received this message because you are subscribed to the Google Groups 
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to