Skip to content

Commit

Permalink
update nfpms
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgopack4 committed Nov 19, 2024
1 parent 7621c77 commit ee6545d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/goreleaser/internal/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func Package(dist string, pie bool) config.NFPM {
},

NFPMOverridables: config.NFPMOverridables{
PackageName: dist,
PackageName: id,
Scripts: config.NFPMScripts{
PreInstall: "preinstall.sh",
PostInstall: "postinstall.sh",
Expand Down
2 changes: 1 addition & 1 deletion distributions/otelcol-contrib/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ archives:
- otelcol-contrib
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
nfpms:
- package_name: otelcol-contrib
- package_name: otelcol-contrib-pie
contents:
- src: otelcol-contrib.service
dst: /lib/systemd/system/otelcol-contrib.service
Expand Down
2 changes: 1 addition & 1 deletion distributions/otelcol-otlp/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ archives:
- otelcol-otlp
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
nfpms:
- package_name: otelcol-otlp
- package_name: otelcol-otlp-pie
contents:
- src: otelcol-otlp.service
dst: /lib/systemd/system/otelcol-otlp.service
Expand Down
2 changes: 1 addition & 1 deletion distributions/otelcol/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ archives:
- otelcol
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
nfpms:
- package_name: otelcol
- package_name: otelcol-pie
contents:
- src: otelcol.service
dst: /lib/systemd/system/otelcol.service
Expand Down

0 comments on commit ee6545d

Please sign in to comment.