Browse Source

Update 'run_siona.sh'

jah
onryo 2 months ago
parent
commit
837abce0c0
  1. 28
      run_siona.sh

28
run_siona.sh

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