From b5c789ec896c13a787719ecb799f83b04d16cd6f Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 16 May 2018 21:52:10 -0300 Subject: [PATCH] docs: nfpm: managed empty folders --- www/content/linux-packages.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/content/linux-packages.md b/www/content/linux-packages.md index 1a41e7c8e..eee596f1f 100644 --- a/www/content/linux-packages.md +++ b/www/content/linux-packages.md @@ -91,6 +91,12 @@ nfpm: # Override default /usr/local/bin destination for binaries bindir: /usr/bin + # Empty folders that should be created and managed by the packager + # implementation. + # Default is empty. + empty_folders: + - /var/log/foobar + # Files or directories to add to your package (beyond the binary). # Keys are source paths/globs to get the files from. # Values are the destination locations of the files in the package. @@ -127,6 +133,8 @@ nfpm: - gitk recommends: - tig + empty_folders: + - /var/log/bar rpm: replacements: amd64: x86_64