On 2/4/19 5:52 PM, Nye Liu wrote:
Time permitting I may take a shot at a patch.
I think this is about more or less how it could/should be done (sorry if
that is exactly what you had in mind anyway :):
detect if mysql is installed in netdata-plugins-python.config.
if yes, ask with priority low if the user wants to create the
required netdata db user, and then create the user in
netdata-plugins-python.postinst, remove it in netdata-plugins-python.postrm.
if some of the netdata plugin conffiles need configuration, we would
then either have to 'default' to that behaviour in the debian package,
or, use ucf to do the config changes.
Regards,
Daniel