forked from onryo/siona
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.
14 lines
507 B
14 lines
507 B
#!/usr/bin/env bash
|
|
|
|
DIRDIR="/var/www/explorer.hush.land/var/www/explorer.hush.land"
|
|
DIR="/var/www/explorer.hush.land"
|
|
|
|
cd $DIR && ./update_explorer_data.sh
|
|
cd $DIR && ./update_api.sh
|
|
|
|
# Anonset
|
|
cd $DIRDIR && anonset=$(curl -s 'https://explorer.hush.land/api/getchaintxstats.json' | jq -r '.shielded_pool_size') && sed -i "s|<span class='anonset'>.*</span>|<span class='anonset'> $anonset </span>|g" template.html
|
|
|
|
perl $DIR/bin/update.pl > $DIRDIR/index-1.html
|
|
|
|
cd $DIRDIR && cat index-1.html > index.html
|
|
|