From b76b65875d2e60d63ff571000f4c6c890c8dd70c Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Sun, 20 Nov 2022 14:22:19 -0300 Subject: [PATCH] docs: note trailing slash on nfpm --- www/docs/customization/nfpm.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/docs/customization/nfpm.md b/www/docs/customization/nfpm.md index 66b541feb6c..bff5201331c 100644 --- a/www/docs/customization/nfpm.md +++ b/www/docs/customization/nfpm.md @@ -214,6 +214,11 @@ nfpms: owner: notRoot group: notRoot + # If `dst` ends with a `/`, it'll create the given path and copy the given + # `src` into it, the same way `cp` works with and without trailing `/`. + - src: ./foo/bar/* + dst: /usr/local/myapp/ + # Using the type 'dir', empty directories can be created. When building # RPMs, however, this type has another important purpose: Claiming # ownership of that folder. This is important because when upgrading or