Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Option to flush .dist files when syncing repo #157

Open
wegotoeleven opened this issue Oct 1, 2020 · 0 comments
Open

Option to flush .dist files when syncing repo #157

wegotoeleven opened this issue Oct 1, 2020 · 0 comments

Comments

@wegotoeleven
Copy link
Contributor

wegotoeleven commented Oct 1, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant