feat(packaging): add logrotate configuration for apk package
arcad/emissary/pipeline/head There was a failure building this commit Details

This commit is contained in:
wpetit 2023-10-02 20:12:07 -06:00
parent 1a270fa4d8
commit 75cab3264f
3 changed files with 20 additions and 0 deletions

View File

@ -105,6 +105,9 @@ nfpms:
file_info:
mode: 0755
packager: apk
- src: misc/packaging/openrc/emissary-server.logrotate.conf
dst: /etc/logrotate.d/emissary-server
packager: apk
- dst: /var/lib/emissary
type: dir
file_info:
@ -147,5 +150,8 @@ nfpms:
file_info:
mode: 0755
packager: apk
- src: misc/packaging/openrc/emissary-agent.logrotate.conf
dst: /etc/logrotate.d/emissary-agent
packager: apk
scripts:
postinstall: "misc/packaging/common/postinstall-agent.sh"

View File

@ -0,0 +1,7 @@
/var/log/emissary/agent.log {
missingok
sharedscripts
postrotate
/etc/init.d/emissary-agent restart
endscript
}

View File

@ -0,0 +1,7 @@
/var/log/emissary/server.log {
missingok
sharedscripts
postrotate
/etc/init.d/emissary-server restart
endscript
}