jamf / NetSUS

NetBoot and Software Update Server
https://jamfnation.jamfsoftware.com/viewProduct.html?id=180
304 stars 68 forks source link

Option to flush .dist files when syncing repo #157

Open wegotoeleven opened 4 years ago

wegotoeleven commented 4 years ago

Hey. Just a thought; part of the "fix" for the new compressed updates from Apple is the need to delete bad .dist files from the downloaded cache. It might be good to add an option into the SUS settings to find and remove these, prior to a manual sync? Something like adding a checkbox under "Store updates on this server" that says "Flush Software Update distribution files during a Manual sync"; this then runs something like the below when a manual sync takes places, before repo_sync kicks in?

for DIST_FILE in $(find /srv/SUS/html/content/downloads/ -name "*".dist); do rm $DIST_FILE; done