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.
 
 
 
 

24 lines
721 B

#!/usr/bin/env bash
export SIONA_ROOT_DIR="siona-DragonX"
export SIONA_DOMAIN="explorer.dragonx.is"
export SIONA_CLI="/home/admin/HUSH/hush3/src/dragonx-cli"
export SIONA_ACNAME="DRAGONX"
DOMAIN=${SIONA_DOMAIN}
ROOT_DIR=${SIONA_ROOT_DIR}
DIR=/var/www/$ROOT_DIR/$DOMAIN
echo "DOMAIN = $DOMAIN"
echo "ROOT_DIR = $ROOT_DIR"
echo "DIR = $DIR"
cd $DIR && ./update_api.sh
cd $DIR && ./update_explorer_data.sh
# Anonset
cd $DIR && 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
perl $DIR/bin/update_all_blocks.pl > $DIR/index-1.html
cat $DIR/index-1.html > $DIR/index.html