chore: Prevent RPM from changing permissions on telegraf.d (#12643)

This commit is contained in:
Joshua Powers 2023-02-09 03:15:43 -07:00 committed by GitHub
parent 853913fc24
commit 27ba94fa4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -337,6 +337,8 @@ $(include_packages):
@mkdir -p $(pkgdir) @mkdir -p $(pkgdir)
@if [ "$(suffix $@)" = ".rpm" ]; then \ @if [ "$(suffix $@)" = ".rpm" ]; then \
echo "# DO NOT EDIT OR REMOVE" > $(DESTDIR)$(sysconfdir)/telegraf/telegraf.d/.ignore; \
echo "# This file prevents the rpm from changing permissions on this directory" >> $(DESTDIR)$(sysconfdir)/telegraf/telegraf.d/.ignore; \
fpm --force \ fpm --force \
--log info \ --log info \
--architecture $(basename $@) \ --architecture $(basename $@) \
@ -347,6 +349,7 @@ $(include_packages):
--license MIT \ --license MIT \
--maintainer support@influxdb.com \ --maintainer support@influxdb.com \
--config-files /etc/telegraf/telegraf.conf \ --config-files /etc/telegraf/telegraf.conf \
--config-files /etc/telegraf/telegraf.d/.ignore \
--config-files /etc/logrotate.d/telegraf \ --config-files /etc/logrotate.d/telegraf \
--after-install scripts/rpm/post-install.sh \ --after-install scripts/rpm/post-install.sh \
--before-install scripts/rpm/pre-install.sh \ --before-install scripts/rpm/pre-install.sh \