mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
Ensure downloaded installer files are removed after validation. Add cleanupInstaller to remove the installer file (ignoring missing files and logging failures). Propagate a downloaded installer path from DownloadMaintainedApp (signature now returns the TempFileReader, the saved file path, and error), write the installer into cfg.tmpDir and set INSTALLER_PATH in cfg.env. Call cleanupInstaller on error paths and after successful validation to avoid leftover temp files. |
||
|---|---|---|
| .. | ||
| validate | ||
| main.go | ||
| main_test.go | ||