trilium/DockerHealthcheck.sh
2022-06-19 12:39:20 +03:00

6 lines
137 B
Bash
Executable file

#!/bin/sh
if wget --spider -S "127.0.0.1:8080/login" 2>&1 | awk 'NR==2' | grep -w "HTTP/1.1 200 OK" ; then
exit 0
else
exit 1
fi