From 6d791ed7213b5125ec62d0e925d6981f2ac2d237 Mon Sep 17 00:00:00 2001 From: tympanix Date: Thu, 19 Apr 2018 00:32:59 +0200 Subject: [PATCH] docs: explain nfpm scripts --- docs/100-linux-packages.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/100-linux-packages.md b/docs/100-linux-packages.md index 4cf787b2c..dcd3e2053 100644 --- a/docs/100-linux-packages.md +++ b/docs/100-linux-packages.md @@ -103,6 +103,15 @@ nfpm: config_files: "tmp/app_generated.conf": "/etc/app.conf" "conf/*.conf": "/etc/foo/" + + # Scripts to execute during the installation of the package. + # Keys are the possible targets during the installation process + # Values are the paths to the scripts which will be executed + scripts: + preinstall: "scripts/preinstall.sh" + postinstall: "scripts/postinstall.sh" + preremove: "scripts/preremove.sh" + postremove: "scripts/postremove.sh" ``` Note that GoReleaser will not install `rpmbuild` or any dependencies for you.