You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Robert (JIRA)" <ji...@apache.org> on 2018/07/13 06:53:00 UTC
[jira] [Created] (KAFKA-7159) mark configuration files in
confluent-kafka RPM SPEC file
Robert created KAFKA-7159:
-----------------------------
Summary: mark configuration files in confluent-kafka RPM SPEC file
Key: KAFKA-7159
URL: https://issues.apache.org/jira/browse/KAFKA-7159
Project: Kafka
Issue Type: Improvement
Components: packaging
Affects Versions: 1.1.0
Environment: RHEL7
Reporter: Robert
All configuration files in confluent-kafka-<scala_version> RPM SPEC file should be marked with %config prefix in %files section.
This would prevent overwrites during install/upgrade and uninstall operations
[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/rpm_packaging_guide/index#files]
It's especially important to save configuration during package upgrades.
Section to change in SPEC file:
{code:java}
%files
%config(noreplace) %{_sysconfdir}/kafka/*.conf
%config(noreplace) %{_sysconfdir}/kafka/*.properties
{code}
It would also be good to mark documentation files with %doc
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)