Skip to content

Commit

Permalink
Dont overwrite existing config
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun committed Nov 5, 2024
1 parent d1f2bef commit 0e82177
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Formula/lavinmq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ def install
man1.install "man1/lavinmqctl.1"
man1.install "man1/lavinmqperf.1"

pkgetc.install "extras/lavinmq.ini"
inreplace lavinmq_config do |s|
s.gsub!(/^data_dir.*/, "data_dir = #{var}/lavinmq")
unless lavinmq_config.exist?
pkgetc.install "extras/lavinmq.ini"
inreplace lavinmq_config do |s|
s.gsub!(/^data_dir.*/, "data_dir = #{var}/lavinmq")
end
end
end

Expand Down

0 comments on commit 0e82177

Please sign in to comment.