You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would a quick md5 checksum verification be useful? sha1 is a bit slower and might be unnecessary, but could be used instead.
Some code I quickly put together, which replaces version checking with md5 verification.
#Use Parameter 7 in the JSS. Get this value by running 'md5 /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg'
OSChecksum="$7"
##Check for existing Sierra installer and verify checksum
if [ -e "$OSInstaller" ]; then
/bin/echo "$OSInstaller found, verifying checksum."
OSChecksumVerify=`/sbin/md5 /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg | awk '{print $6}'`
if [ $OSChecksum = $OSChecksumVerify ]; then
/bin/echo "Checksum passed."
downloadSierra="No"
else
downloadSierra="Yes"
##Delete old version.
/bin/echo "Installer found, but invalid. Deleting..."
/bin/rm -rf "$OSInstaller"
fi
else
/bin/echo "Installer not found, will download."
downloadSierra="Yes"
fi
The text was updated successfully, but these errors were encountered:
So after some discussion and contemplation over this I don't believe this is something I'd add due to added complexity on the admin part and that the jamf binary should already be handling the checksum for this when the package is installed/cached.
But I am willing to re-consider. If folks want to "up vote" for this feature, just reply to this thread and if there is enough I will work on adding it.
@kc9wwh Jamf is not always the one doing the caching. It's now looking for an existing installer (presumably from Apple) and checking the version, if it matches the version from $4, it continues.
I don't think adding this would be a bad idea. Could even make it optional by checking for the existence of $7, if that's populated, check the checksum.
Would a quick md5 checksum verification be useful? sha1 is a bit slower and might be unnecessary, but could be used instead.
Some code I quickly put together, which replaces version checking with md5 verification.
The text was updated successfully, but these errors were encountered: