Skip to content

Commit

Permalink
Install lavinmq config
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun committed Nov 5, 2024
1 parent 1076917 commit f5ad453
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Formula/lavinmq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ def install
bin.install "bin/lavinmq"
bin.install "bin/lavinmqctl"
bin.install "bin/lavinmqperf"

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

Check failure on line 25 in Formula/lavinmq.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-latest)

Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.

Check failure on line 25 in Formula/lavinmq.rb

View workflow job for this annotation

GitHub Actions / test-bot (macOS-latest)

Layout/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.
end

def lavinmq_config
pkgetc/"lavinmq.ini"
end

service do
run [opt_bin / "lavinmq", "-D", var / "lavinmq"]
run [opt_bin/"lavinmq", "-c", lavinmq_config]
end

test do
Expand Down

0 comments on commit f5ad453

Please sign in to comment.