[ https://issues.apache.org/jira/browse/KAFKA-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Fabisiak updated KAFKA-7159: ----------------------------------- Description: All configuration files in kafka 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 was: 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 > 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 Fabisiak > Priority: Major > Labels: rpm > > All configuration files in kafka 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)