From 417c5c1de894f935b62d10d4605374847d670c89 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Fri, 22 Mar 2019 14:02:45 -0700 Subject: [PATCH] Add owned directories to rpm package (#5607) --- scripts/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.py b/scripts/build.py index e7a402be5..5869bf1ed 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -647,7 +647,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static= package_build_root, current_location) if package_type == "rpm": - fpm_command += "--depends coreutils --depends shadow-utils --rpm-posttrans {}".format(POSTINST_SCRIPT) + fpm_command += "--directories /var/log/telegraf --directories /etc/telegraf --depends coreutils --depends shadow-utils --rpm-posttrans {}".format(POSTINST_SCRIPT) out = run(fpm_command, shell=True) matches = re.search(':path=>"(.*)"', out) outfile = None