From 20da44eae312c075492872784bc376de2ec49aea Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 3 Mar 2020 16:35:57 -0800 Subject: [PATCH] cmd/mkpkg: support scripts for rpm as well. --- cmd/mkpkg/main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/mkpkg/main.go b/cmd/mkpkg/main.go index 60cc24fe7..c550f46c2 100644 --- a/cmd/mkpkg/main.go +++ b/cmd/mkpkg/main.go @@ -64,6 +64,11 @@ func main() { Overridables: nfpm.Overridables{ Files: filesMap, ConfigFiles: configsMap, + Scripts: nfpm.Scripts{ + PostInstall: *postinst, + PreRemove: *prerm, + PostRemove: *postrm, + }, }, }) @@ -76,11 +81,6 @@ func main() { case "deb": info.Section = "net" info.Priority = "extra" - info.Overridables.Scripts = nfpm.Scripts{ - PostInstall: *postinst, - PreRemove: *prerm, - PostRemove: *postrm, - } case "rpm": info.Overridables.RPM.Group = "Network" }