![]() ![]() This is the script output from my system: Nice work! Also for what it is worth I cleaned up some syntax in the sctipt, tested on my 10.14.6 (beta) system and it ran very well. I can't have these things go off in the middle of class. I have a hard time with Patch Management Policies because I manage labs and there is no way to set a maintenance window like in normal policies. LatestJavaVer=`echo "$latestver" | awk -F "." ' # Get the latest version number of Java available. Logfile="/Library/Logs/JavaInstallScript.log" It's a mash up of these other scripts plus the ideas that had in the OP: If they don't match, it downloads the latest version of Java and installs it. It successfully installed/upgraded both.įor anybody that cares, I put together this script that checks the latest version of Java against the currently installed one, if there is. So far, it's worked on a couple of my test systems, both without Java installed at all, and with an older version (1.8.0_131). ![]() I'm positive it can be dramatically improved, but even though there are dozens of threads about it, I couldn't find a script that worked for me. Sudo installer -pkg /Volumes/Java 8 Update $minorver/Java 8 Update $minorver.app/Contents/Resources/JavaAppletPlugin.pkg -target /ĭiskutil umount /Volumes/Java 8 Update $minorver Hdiutil attach jre-8i$minorver-macosx-圆4.dmg # If the file is larger than 500kb, assume it's the real dmg ![]() # Get build number (counting down from 20), since I can't find anywhere that Oracle publishes this in an easily-findable placeįilename="jre-8i$minorver-macosx-圆4.dmg"Ĭurl -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" $minorver-b$b/96a7b8442fe848ef90c96a2fad6ed6d1/jre-8u$minorver-macosx-圆4.dmg > $filename This version only does the JRE, although I'm sure you could expand it to do the JDK also. SCRIPT TO UPDATE ADOBE FLASH READER AND JAVA INSTALLI wrote a script to install and update Java. I know this has been discussed several times, but I wanted to throw my 2 cents in. as soon as I posted this, I found a script that appears to work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |