Browse Source

rm update

jah
onryo 2 months ago
parent
commit
2531d37544
  1. 29
      run_siona.sh

29
run_siona.sh

@ -0,0 +1,29 @@
#!/usr/bin/env bash
# UPDATE EXPLORER DATA
NEWFILE=/var/www/explorer.hush.land/blocks/index.new.html
INDEXFILE=/var/www/explorer.hush.land/blocks/index.html
# reads data from /var/www/explorer.hush.land/api
/var/www/explorer.hush.land/bin/update_blocks_redis.pl > $NEWFILE
if [ -s $NEWFILE ]; then
cp $NEWFILE $INDEXFILE
fi
# UDPATE API
~/hush3/src/hush-cli getinfo &> api/getinfo.json
~/hush3/src/hush-cli getmininginfo &> api/getmininginfo.json
~/hush3/src/hush-cli getblockchaininfo &> api/getblockchain.json
~/hush3/src/hush-cli getchaintxstats &> api/getchaintxstats.json
~/hush3/src/hush-cli gettxoutsetinfo &> api/gettxoutsetinfo.json
~/hush3/src/hush-cli coinsupply &> api/coinsupply.json
~/hush3/src/hush-cli getchaintips &> api/getchaintips.json
~/hush3/src/hush-cli getchaintxstats &> api/getchaintxstats.json
# UPDATE INDEX.HTML
perl bin/update.pl > index-1.html
cat index-1.html > index.html
Loading…
Cancel
Save