Merge pull request #590 from unpoller/homebrew-fix-etc

Fix Homebrew missing etc directory on install
This commit is contained in:
Cody Lee 2023-08-07 06:14:26 -05:00 committed by GitHub
commit 8d10f52b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -482,7 +482,7 @@ brews:
- unpoller
- unpoller-linux-arm
- unpoller-mac
tap:
repository:
owner: golift
name: homebrew-mugs
branch: master
@ -508,7 +508,12 @@ brews:
url_template: "https://github.com/unpoller/unpoller/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
test: |
assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2)
install: |
bin.install "unpoller"
etc.mkdir "unpoller"
etc.install "examples/up.conf" => "unpoller/up.conf.example"
post_install: |
etc.install "examples/up.conf" => "unpoller/up.conf"
publishers:
- name: "packagecloud-publisher"