motioneye watch: use HEAD instead of GET to SVG

This commit is contained in:
Calin Crisan 2016-05-18 23:13:19 +03:00
parent 62e8dfb542
commit 8e6f23ffb8

View File

@ -29,7 +29,7 @@ opts=$(cat "$conf" | while read line; do echo "--$line"; done)
port=$(echo "$opts" | grep -oE 'port [[:digit:]]+' | cut -d ' ' -f 2)
responsive() {
wget -q -t 1 -T 2 -O - http://127.0.0.1:$port/static/img/motioneye-logo.svg &>/dev/null && return 0 || return 1
wget --method=HEAD -q -t 1 -T 2 -O - http://127.0.0.1:$port &>/dev/null && return 0 || return 1
}
watch() {