mirror of
https://github.com/owntracks/docker-recorder.git
synced 2026-08-26 10:37:17 +00:00
@@ -28,6 +28,8 @@ RUN apk add --no-cache --virtual .build-deps \
|
||||
&& rm -rf /usr/local/source \
|
||||
&& chmod 755 /usr/local/sbin/recorder-health.sh \
|
||||
&& apk del .build-deps
|
||||
RUN apk add --no-cache \
|
||||
curl jq
|
||||
|
||||
VOLUME ["/store", "/config"]
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ curl -sSL --data "${location}" "http://${addr}:${port}/pub?u=ping&d=ping" > /dev
|
||||
|
||||
# obtain tst of ping/ping's last location
|
||||
ret_epoch=$(curl -sSL http://${addr}:${port}/api/0/last --data "user=ping&device=ping" |
|
||||
env python -c 'import sys, json; print json.load(sys.stdin)[0]["tst"];')
|
||||
env jq -r '.[0].tst' )
|
||||
|
||||
if [ $epoch -ne $ret_epoch ]; then
|
||||
echo PANIC $epoch $ret_epoch
|
||||
|
||||
Reference in New Issue
Block a user