Extremely Private HUSH and HAC explorer https://explorer.hush.is
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
494 B

#!/usr/bin/env bash
cli=$(SIONA_CLI)
# only ask for data if we don't have it
#if [ -s ~/data/blocks/block-$HEIGHT.json ]; then
# HEIGHT=$($cli getblockcount); $cli getblock $HEIGHT > ~/data/blocks/block-$HEIGHT.json
#fi
NEWFILE=/var/www/$domain/var/www/$domain/blocks/index.new.html
INDEXFILE=/var/www/$domain/var/www/$domain/blocks/index.html
# reads data from /var/www/$domain/api
/var/www/$domain/bin/update_blocks_redis.pl > $NEWFILE
if [ -s $NEWFILE ]; then
cp $NEWFILE $INDEXFILE
fi