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.
 
 
 
 

16 lines
473 B

#!/usr/bin/env bash
DOMAIN=${SIONA_DOMAIN}
ROOT_DIR=${SIONA_ROOT_DIR}
DIR="/var/www/$ROOT_DIR/$DOMAIN"
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.pl > $DIR/index-1.html
cat $DIR/index-1.html > $DIR/index.html