Add postinst script to add prometheus user
The prometheus user was missing so startup of prometheus-apache-exporter failed with:
systemd[29960]: prometheus-apache-exporter.service: Failed to determine user credentials: No such process
systemd[29960]: prometheus-apache-exporter.service: Failed at step USER spawning /usr/bin/prometheus-apache-exporter: No such process
Therefor I added the postinst
script to create the prometheus user (copied from https://salsa.debian.org/go-team/packages/prometheus-nginx-vts-exporter/blob/debian/sid/debian/postinst). As this is a bugfix, it should also be merged to stretch-backports
?
Changes:
- Add postinst script to create prometheus user
- Avoid recursive chown calls in SysVinit file
- Update debhelper compat
- Update Debian changelog
BTW: I found https://salsa.debian.org/go-team/packages/prometheus-varnish-exporter/blob/master/debian/postinst to be different to the other exporters, maybe worth an update?
Edited by Fabian Weisshaar