diff --git a/assets/img/masternode_count-crop-813x525.png b/assets/img/masternode_count-crop-813x525.png new file mode 100644 index 0000000..33dec43 Binary files /dev/null and b/assets/img/masternode_count-crop-813x525.png differ diff --git a/index.html b/index.html index b487bb3..d951bbb 100644 --- a/index.html +++ b/index.html @@ -265,7 +265,7 @@ description: pages.home.description {% t pages.home.network-growth-heading %}
- {% t pages.home.network-growth-heading %} + {% t pages.home.network-growth-heading %}
diff --git a/network/index.html b/network/index.html index 2dbd602..349e726 100644 --- a/network/index.html +++ b/network/index.html @@ -67,7 +67,7 @@ description: pages.currency.description

- +

diff --git a/script/cron-refresh_masternode_count_image.sh b/script/cron-refresh_masternode_count_image.sh new file mode 100755 index 0000000..aa9ef46 --- /dev/null +++ b/script/cron-refresh_masternode_count_image.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# cron-refresh_masternode_count_image.sh +# pulls, resizes, and places an image from service that hasn't installed ssl +# self-hosting the content avoids mixed-content/insecure browser warnings + +# source image is updated once an hour. +# production crontab config. check every 10 past so it's reasonably fresh +# +# 10 * * * * /home/ubuntu/build/dash-website/script/cron-refresh_masternode_count_image.sh +# + +FILEPATH=/tmp/masternode_count.png +rm -f $FILEPATH +wget -q http://178.254.23.111/~pub/masternode_count.png -O $FILEPATH + +if [[ -e $FILEPATH ]]; then + 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 +fi