forked from filebrowser/filebrowser
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a healthcheck script that works with a dynamic port (filebr…
…owser#2510) (cherry picked from commit ff4375c)
- Loading branch information
1 parent
4f1921b
commit 6d78ac2
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
PORT=$(jq .port /.filebrowser.json) | ||
curl -f http://localhost:$PORT/health || exit 1 |