Is there a script already out there that will remove cached packages before you cache a newer version of that software?
We want our users to log out regularlly, during log out it installs any cached packages we have. There are a few users who don't do this (read senior management with laptops, and people who 'haven't got enough time to log out!!!') with those users sometimes we end up with multiple cached packages of the same thing, firefox, thunderbird and skype recently spring to mind.
What I would like to do is add a script to pretty much every cache package policy that says if there is already a cached package with the same name delete it before caching the new one.
I know I can do something like
#!/bin/bash
rm -rf "/Libary/Application Support/JAMF/Waiting Room/$4"*
exit
with $4 being 'package name' and then we have to fill that out for each policy. But do you know a better way, or a shortcut that actually is the package name you are caching or something?
