Skip to content

Commit

Permalink
fixed bug #54
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvAmBass committed Jan 20, 2022
1 parent 02d9cd5 commit 8498d9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ _all of those variants are automatically build and generated in one go_

## Changelogs

* 2022-01-20
* fixed healthcheck for container `avahi`
* 2022-01-08
* better build script
* 2021-12-30
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker-healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ NUM_OF_SERVICES=2
[ -z ${AVAHI_DISABLE+x} ] && [ -f "/external/avahi/not-mounted" ] && NUM_OF_SERVICES=$(expr $NUM_OF_SERVICES + 1)
[ -z ${WSDD2_DISABLE+x} ] && NUM_OF_SERVICES=$(expr $NUM_OF_SERVICES + 1)

[[ $(ps aux | grep '[0-9] root' | grep '[0-9] [s]mbd \|/[w]sdd2\|[a]vahi-daemon\|[r]unsvdir' | wc -l) -ge "$NUM_OF_SERVICES" ]]
[[ $(ps aux | grep '[0-9] [s]mbd \|/[w]sdd2\|[a]vahi-daemon: r\|[r]unsvdir' | wc -l) -ge "$NUM_OF_SERVICES" ]]
exit $?

0 comments on commit 8498d9f

Please sign in to comment.