mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
rakelib: List log4j2.properties as a config file in RPM/Deb (#7688)
When a file is listed as a configuration file the package manager will ask the user about what to do about local modifications when the package is upgraded and the file has changed upstream. If not listed as a configuration file any local modifications will silently be lost.
This commit is contained in:
parent
e3b294cd0b
commit
ca1962f697
1 changed files with 2 additions and 0 deletions
|
@ -332,6 +332,7 @@ namespace "artifact" do
|
|||
out.attributes[:rpm_os] = "linux"
|
||||
out.config_files << "/etc/logstash/startup.options"
|
||||
out.config_files << "/etc/logstash/jvm.options"
|
||||
out.config_files << "/etc/logstash/log4j2.properties"
|
||||
out.config_files << "/etc/logstash/logstash.yml"
|
||||
when "debian", "ubuntu"
|
||||
File.join(basedir, "pkg", "startup.options").tap do |path|
|
||||
|
@ -351,6 +352,7 @@ namespace "artifact" do
|
|||
out.attributes[:deb_suggests] = "java8-runtime-headless"
|
||||
out.config_files << "/etc/logstash/startup.options"
|
||||
out.config_files << "/etc/logstash/jvm.options"
|
||||
out.config_files << "/etc/logstash/log4j2.properties"
|
||||
out.config_files << "/etc/logstash/logstash.yml"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue