-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download package diagnostics #106
Comments
So, to be a bit more specific, the default would be to zip up and provide the user with:
The former relates to user settings for the package and #7 as well as https://github.com/fpv-wtf/wtfos-package-config The latter can populated by the package dinit unit's logfile property with a combination of the entware logrotate package to keep things sane. The package may optionally use Additionally, packages could specify further things to include either by
I don't think we should necessarily provide all interfaces, but I'm not sure which is the better approach. |
…the package list. For now only downloads hardcoded wtfos.log #106
Having implemented part of the functionality now, I am not super happy about an optional arbitrary command per package to create the archive. I would much rather prefer an optional script to be called before the archive is generated: I check the package for a preDownloadDiagnosticsHook.sh script, run that which dumps everything it needs to dump into the log folders and then the configurator proceeds to archive everything up. In step 1 I would suggest we only pack up the configs and logs dirs and see if there is need for any custom stuff to be added before downloading the archive. |
That makes sense, in hindsight the custom streaming archive command is a bit obtuse. So, where do we stick preDownloadDiagnosticsHook.sh, is it another one-off folder in /opt/etc? Is it stored next to the package config stuff? Could we add it as a new script in the packages control section? Also, considering we want to stream the archive out and not use disk space (because we may not have it), could the executable optionally be able to return a newline delimited list of additional paths rather than be forced to copy into the logs folder? |
Yes, I would even prefer a script that return paths. |
Alright, so this is technically implemented in #111, but ultimately there is no need for this - closed. |
Every installed package should have an additional Menu "More".
The first option being available there is a "Download diagnostics" button which retrieves the packages logs and diagnostic files from a pre-determined location.
Further each package should be allowed to override the command in which the diagnostics/logs are being fetched in order to add more data.
The text was updated successfully, but these errors were encountered: