Skip to main content

Hey folks...



Been using the Adobe Reader download and install script for many months now without issue and as of last week it seems to be broken.



Adobe must have changed something on their site and now the script is just thrown in to continuous loop when running the CURL command.



I've tried the following scripts and they're all broken.



https://www.jamf.com/jamf-nation/third-party-products/files/1043/acrobat-reader-dc-updater



https://github.com/PhillyPhoto/JAMF-Scripts/blob/master/Adobe-Products/AdobeReaderUpdate.sh



https://github.com/jamf/Jamf-Nation-Scripts/blob/master/AdobeReaderUpdate.sh



Does anyone have a fix???? We'd rather not deploy a package installer as Adobe updates it so often.

Great reccomendation

After analyzing the script Installomator uses. Gotta say, it's very clever. Essentially, it sequentially checks each download link from newest to oldest and grabs the newest link that returns 200 (i.e. it exists).
You may not install the newest version, but at least it will install a somewhat recent version that can be updated to the latest version.
Here is that section of code, for anyone interested:

 

versions=( $( curl -s https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html | grep -Eo "[0-9]+\\.[0-9]+\\.[0-9]+"| head -n 30) )
local version
for version in $versions; do
version="${version//.}"
local httpstatus=$(curl -X HEAD -s "https://ardownload2.adobe.com/pub/adobe/reader/mac/AcrobatDC/${version}/AcroRdrDC_${version}_MUI.dmg" --write-out "%{http_code}")
if [[ "${httpstatus}" == "200" ]]; then
downloadURL="https://ardownload2.adobe.com/pub/adobe/reader/mac/AcrobatDC/${version}/AcroRdrDC_${version}_MUI.dmg"
unset httpstatus
break
fi
done

 




Reply