forked from onryo/siona
onryo
11 months ago
38 changed files with 10 additions and 37 deletions
@ -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 |
|||
|
@ -1,12 +0,0 @@ |
|||
226212 |
|||
226355 |
|||
226361 |
|||
226664 |
|||
227090 |
|||
227309 |
|||
227738 |
|||
227933 |
|||
228039 |
|||
228062 |
|||
228077 |
|||
228090 |
@ -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…
Reference in new issue