mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
motioneye watch: use HEAD instead of GET to SVG
This commit is contained in:
parent
62e8dfb542
commit
8e6f23ffb8
@ -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)
|
port=$(echo "$opts" | grep -oE 'port [[:digit:]]+' | cut -d ' ' -f 2)
|
||||||
|
|
||||||
responsive() {
|
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() {
|
watch() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user