-
got the following error, read somewhere that posttrans is not a problem...whats wrong?
nfpm.yaml
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
it seems you are missing an indentation level on posttrans... |
Beta Was this translation helpful? Give feedback.
-
removed the overide stuff and changed it to this, still the same error.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
correct usage would be: name: "grafana"
arch: "ppc64le"
platform: "linux"
version: "8.0.5"
section: "default"
priority: "extra"
replaces:
- grafana
provides:
- grafana-server
- grafana-cli
depends:
- adduser
- libfontconfig1
maintainer: "<[email protected]>"
description: |
Grafana
vendor: "Grafana"
homepage: "https://grafana.com"
license: "Apache 2"
contents:
- src: /scratch/go/dev/src/github.com/grafana/grafana/bin/linux-ppc64le/grafana-server
dst: /usr/sbin/grafana-server
- src: /scratch/go/dev/src/github.com/grafana/grafana/bin/linux-ppc64le/grafana-cli
dst: /usr/sbin/grafana-cli
- src: /scratch/go/dev/src/github.com/grafana/grafana/packaging/rpm/init.d/grafana-server
dst: /etc/init.d/grafana-server
- src: /scratch/go/dev/src/github.com/grafana/grafana/packaging/rpm/sysconfig/grafana-server
dst: /etc/sysconfig/grafana-server
type: config|noreplace
- src: /scratch/go/dev/src/github.com/grafana/grafana/packaging/rpm/systemd/grafana-server.service
dst: /usr/lib/systemd/system/grafana-server.service
- src: /scratch/go/dev/src/github.com/grafana/grafana/public/
dst: /usr/share/grafana/public
- src: /scratch/go/dev/src/github.com/grafana/grafana/conf/
dst: /usr/share/grafana/conf
empty_folders:
- /etc/grafana
scripts:
postinstall: /scratch/go/dev/src/github.com/grafana/grafana/packaging/rpm/control/postinst
rpm:
scripts:
posttrans: /scratch/go/dev/src/github.com/grafana/grafana/packaging/rpm/control/posttrans |
Beta Was this translation helpful? Give feedback.
correct usage would be: