Install systemd unit to /usr/lib

Package provided systemd units go in /usr/lib/, not in /etc. See man
systemd.unit, section "UNIT FILE LOAD PATH".
This commit is contained in:
WGH
2025-09-09 01:55:51 +03:00
parent 8bd029b13c
commit 83e697966d

View File

@@ -84,7 +84,7 @@ nfpms:
dst: /etc/mqtt2prometheus/config.yaml dst: /etc/mqtt2prometheus/config.yaml
type: config type: config
- src: ./systemd/mqtt2prometheus.service - src: ./systemd/mqtt2prometheus.service
dst: /etc/systemd/system/mqtt2prometheus.service dst: /usr/lib/systemd/system/mqtt2prometheus.service
type: config type: config
- src: ./systemd/mqtt2prometheus - src: ./systemd/mqtt2prometheus
dst: /etc/default/mqtt2prometheus dst: /etc/default/mqtt2prometheus