media-sucker/scripts/status.sh

14 lines
222 B
Bash
Executable File

#! /bin/sh
. $(dirname $0)/common.sh
while true; do
if ! /scripts/status.json.sh > /www/status.json.new; then
log "Unable to render status!"
else
mv /www/status.json.new /www/status.json
fi
sleep 2
done