Skip to content

Commit

Permalink
Add initial state file to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gzuidhof committed Apr 17, 2024
1 parent 3a4d8f0 commit fc1f04c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ nfpms:
owner: root
group: root
mode: 0640
- src: assets/packages/agentstate
dst: /etc/hareply/agentstate
type: config
file_info:
owner: root
group: root
mode: 0640
scripts:
postinstall: "assets/packages/post-install.sh"
preremove: "assets/packages/pre-uninstall.sh"
Expand Down
1 change: 1 addition & 0 deletions hareply/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func TestValidateAgentCheckResponse(t *testing.T) {
ok bool
}{
{"", false},
{"\n", true},
{"75%\r", true},
{"%\r", false},
{"-1%\r", false},
Expand Down

0 comments on commit fc1f04c

Please sign in to comment.