featurebase/nfpm.yaml
Julio Martinez e25e395bab
Packaging improvements to improve mcloud updates (#2288)
* Update package scripts so they restart services based on the operation (update vs install)

Co-authored-by: Julio Martinez <julio.martinez@logicmonitor.com>
2022-11-10 11:13:06 -08:00

46 lines
1.4 KiB
YAML

name: "featurebase"
arch: "${GOARCH}"
version: "${VERSION}"
section: "default"
priority: "extra"
maintainer: "Molecula Corp. <info@molecula.com>"
description: "FeatureBase is a feature extraction and storage technology that enables real-time analytics."
vendor: "Molecula"
homepage: "https://molecula.com"
contents:
- src: ./featurebase
dst: /usr/bin/featurebase
- src: ./install/featurebase.conf
dst: /etc/featurebase/featurebase.conf
type: config|noreplace
file_info:
owner: featurebase
group: featurebase
- src: ./install/featurebase.redhat.service
dst: /usr/lib/systemd/system/featurebase.service
packager: rpm
- src: ./install/featurebase.debian.service
dst: /lib/systemd/system/featurebase.service
packager: deb
- dst: /var/log/molecula # We use vendor name on log directory in case other molecula components need it.
type: dir
file_info:
mode: 0755
owner: featurebase
group: featurebase
- dst: /var/lib/featurebase
type: dir
file_info:
mode: 0755
owner: featurebase
group: featurebase
- dst: /etc/featurebase # Keeping the config writable by the featurebase user is necessary for the agent.
type: dir
file_info:
mode: 0755
owner: featurebase
group: featurebase
scripts:
preinstall: ./install/preinstall.sh
postinstall: ./install/postinstall.sh