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 |
#!/usr/bin/env bash |
||||
|
|
||||
DOMAIN=$(SIONA_DOMAIN) |
set -e |
||||
DIR="/var/www/$DOMAIN" |
|
||||
DIRDIR="$DIR$DIR" |
|
||||
|
|
||||
cd $DIR && ./update_explorer_data.sh |
DOMAIN=explorer.hush.land/var/www/explorer.hush.land |
||||
cd $DIR && ./update_api.sh |
DIR=/var/www |
||||
|
|
||||
# Anonset |
echo $$ >> $DIR/$DOMAIN/PID |
||||
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 |
|
||||
|
|
||||
perl $DIR/bin/update.pl > $DIRDIR/index-1.html |
# make a backup so we can diff them |
||||
|
cp $DIR/$DOMAIN/{index,index-prev}.html |
||||
cd $DIRDIR && cat index-1.html > index.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