cmd/mkpkg: support scripts for rpm as well.

pull/133/head
David Anderson 5 years ago
parent e371520cc5
commit 20da44eae3

@ -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"
}

Loading…
Cancel
Save