From 2a918fb4f7e376c3bfa081cd5f8c2494dc87dbfe Mon Sep 17 00:00:00 2001 From: Donal Hurley Date: Fri, 15 Mar 2024 12:05:47 +0000 Subject: [PATCH] Update nfpm.yaml for apk packages (#597) --- .nfpm.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.nfpm.yaml b/.nfpm.yaml index 09ad7db09..e5875fa00 100644 --- a/.nfpm.yaml +++ b/.nfpm.yaml @@ -20,6 +20,9 @@ contents: dst: /etc/systemd/system/nginx-agent.service - src: ./scripts/nginx-agent.logrotate dst: /etc/logrotate.d/nginx-agent + - src: ./scripts/packages/nginx-agent.openrc + dst: /etc/init.d/nginx-agent + packager: apk - src: ./scripts/selinux/nginx_agent_selinux.8.gz dst: /usr/share/man/man8/nginx_agent_selinux.8.gz packager: rpm @@ -45,6 +48,8 @@ rpm: apk: signature: key_file: ".key.rsa" + scripts: + postupgrade: "./scripts/packages/postupgrade.sh" scripts: preinstall: "./scripts/packages/preinstall.sh" postinstall: "./scripts/packages/postinstall.sh"