dash-website/cron/pull_and_resize_masternode_graph.sh

17 lines
471 B
Bash
Executable file

#!/bin/bash
# pull hourly-updated http-only masternode count image
# resize, removing shadow
# place
# requires imagemagick
# invoked */10 by cron
FILE=masternode_count.png
rm -f /tmp/$FILE
wget -q http://178.254.23.111/~pub/masternode_count.png -O /tmp/$FILE
convert /tmp/masternode_count.png -crop 813x525+6+6 /tmp/masternode_count-crop-813x525.png
cp -f /tmp/masternode_count-crop-813x525.png /home/ubuntu/broadcast/assets/img/masternode_count-crop-813x525.png