Skip to content

Commit

Permalink
Merge pull request #24 from thin-edge/fix-monit-config-symlinks
Browse files Browse the repository at this point in the history
fix: use symlinks to monit configuration to avoid dpkg creating backups of the config files
  • Loading branch information
reubenmiller authored Jul 15, 2024
2 parents e5b3402 + d15fd43 commit 12eb252
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nfpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@ apk:
arch: noarch
contents:
- src: ./src/conf.d/*.conf
dst: /etc/monit/conf.d/
dst: /usr/share/tedge-monit-setup/
type: config
file_info:
mode: 0644
group: tedge
owner: tedge

- src: /usr/share/tedge-monit-setup/tedge.conf
dst: /etc/monit/conf.d/tedge.conf
type: symlink

- src: /usr/share/tedge-monit-setup/tedge-monitoring.conf
dst: /etc/monit/conf.d/tedge-monitoring.conf
type: symlink

- src: ./src/tedge-monit-setup/env
dst: /etc/tedge-monit-setup/env
type: config|noreplace
Expand Down

0 comments on commit 12eb252

Please sign in to comment.