Browse Source

Less folders

jah
onryo 11 months ago
parent
commit
e4f812b6a9
  1. 0
      address/template.html
  2. 0
      addresses/template.html
  3. 0
      api/anonset.json
  4. 0
      api/coinsupply.json
  5. 0
      api/getblockchain.json
  6. 0
      api/getchaintips.json
  7. 0
      api/getchaintxstats.json
  8. 0
      api/getinfo.json
  9. 0
      api/getmininginfo.json
  10. 0
      api/gettxoutsetinfo.json
  11. 0
      api/index.html
  12. 0
      api/snapshots/snapshot-old.json
  13. 0
      api/snapshots/snapshot.json
  14. 0
      bin/HOWTO
  15. 0
      bin/Makefile
  16. 0
      bin/backup/update_blocks_redis.pl
  17. 0
      bin/balances.pl
  18. 0
      bin/block-340k.json
  19. 0
      bin/example.html
  20. 0
      bin/nope/README
  21. 0
      bin/nope/update_addresses.pl
  22. 0
      bin/update.pl
  23. 0
      bin/update_blocks_redis.pl
  24. 0
      block/template.html
  25. 0
      blocks/template.html
  26. 0
      crons/README
  27. 0
      index-1.html
  28. 0
      index-new.html
  29. 0
      index-prev.html
  30. 0
      index.html
  31. 0
      template.html
  32. 0
      tx/template.html
  33. 20
      update.sh
  34. 0
      update_api.sh
  35. 0
      update_explorer_data.sh
  36. 0
      var/www/explorer.hush.land/PID
  37. 12
      var/www/explorer.hush.land/var/www/explorer.hush.land/PID
  38. 15
      var/www/explorer.hush.land/var/www/explorer.hush.land/update.sh

0
var/www/explorer.hush.land/var/www/explorer.hush.land/address/template.html → address/template.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/addresses/template.html → addresses/template.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/anonset.json → api/anonset.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/coinsupply.json → api/coinsupply.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/getblockchain.json → api/getblockchain.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/getchaintips.json → api/getchaintips.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/getchaintxstats.json → api/getchaintxstats.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/getinfo.json → api/getinfo.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/getmininginfo.json → api/getmininginfo.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/gettxoutsetinfo.json → api/gettxoutsetinfo.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/index.html → api/index.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/snapshots/snapshot-old.json → api/snapshots/snapshot-old.json

0
var/www/explorer.hush.land/var/www/explorer.hush.land/api/snapshots/snapshot.json → api/snapshots/snapshot.json

0
var/www/explorer.hush.land/bin/HOWTO → bin/HOWTO

0
var/www/explorer.hush.land/bin/Makefile → bin/Makefile

0
var/www/explorer.hush.land/bin/backup/update_blocks_redis.pl → bin/backup/update_blocks_redis.pl

0
var/www/explorer.hush.land/bin/balances.pl → bin/balances.pl

0
var/www/explorer.hush.land/bin/block-340k.json → bin/block-340k.json

0
var/www/explorer.hush.land/bin/example.html → bin/example.html

0
var/www/explorer.hush.land/bin/nope/README → bin/nope/README

0
var/www/explorer.hush.land/bin/nope/update_addresses.pl → bin/nope/update_addresses.pl

0
var/www/explorer.hush.land/bin/update.pl → bin/update.pl

0
var/www/explorer.hush.land/bin/update_blocks_redis.pl → bin/update_blocks_redis.pl

0
var/www/explorer.hush.land/var/www/explorer.hush.land/block/template.html → block/template.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/blocks/template.html → blocks/template.html

0
var/www/explorer.hush.land/crons/README → crons/README

0
var/www/explorer.hush.land/var/www/explorer.hush.land/index-1.html → index-1.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/index-new.html → index-new.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/index-prev.html → index-prev.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/index.html → index.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/template.html → template.html

0
var/www/explorer.hush.land/var/www/explorer.hush.land/tx/template.html → tx/template.html

20
update.sh

@ -1,15 +1,15 @@
#!/usr/bin/env bash
DOMAIN=$(SIONA_DOMAIN)
DIR="/var/www/$DOMAIN"
DIRDIR="$DIR$DIR"
set -e
cd $DIR && ./update_explorer_data.sh
cd $DIR && ./update_api.sh
DOMAIN=explorer.hush.land/var/www/explorer.hush.land
DIR=/var/www
# Anonset
cd $DIRDIR && anonset=$(curl -s "https://$DOMAIN/api/getchaintxstats.json" | jq -r '.shielded_pool_size') && sed -i "s|<span class='anonset'>.*</span>|<span class='anonset'> $anonset </span>|g" template.html
echo $$ >> $DIR/$DOMAIN/PID
perl $DIR/bin/update.pl > $DIRDIR/index-1.html
cd $DIRDIR && cat index-1.html > index.html
# make a backup so we can diff them
cp $DIR/$DOMAIN/{index,index-prev}.html
# let index.html settle
sleep 2
perl /var/www/explorer.hush.land/bin/update.pl /var/www/explorer.hush.land/api &> $DIR/$DOMAIN/index-new.html
cp $DIR/$DOMAIN/index-new.html $DIR/$DOMAIN/index.html

0
var/www/explorer.hush.land/update_api.sh → update_api.sh

0
var/www/explorer.hush.land/update_explorer_data.sh → update_explorer_data.sh

0
var/www/explorer.hush.land/PID

12
var/www/explorer.hush.land/var/www/explorer.hush.land/PID

@ -1,12 +0,0 @@
226212
226355
226361
226664
227090
227309
227738
227933
228039
228062
228077
228090

15
var/www/explorer.hush.land/var/www/explorer.hush.land/update.sh

@ -1,15 +0,0 @@
#!/usr/bin/env bash
set -e
DOMAIN=explorer.hush.land/var/www/explorer.hush.land
DIR=/var/www
echo $$ >> $DIR/$DOMAIN/PID
# make a backup so we can diff them
cp $DIR/$DOMAIN/{index,index-prev}.html
# let index.html settle
sleep 2
perl /var/www/explorer.hush.land/bin/update.pl /var/www/explorer.hush.land/api &> $DIR/$DOMAIN/index-new.html
cp $DIR/$DOMAIN/index-new.html $DIR/$DOMAIN/index.html
Loading…
Cancel
Save