Browse Source

fixed wrong path in update_blocks_redis.pl

pull/1/head
dan_s 2 years ago
parent
commit
d21de97e15
  1. 10
      var/www/explorer.dragonx.is/bin/update_blocks_redis.pl

10
var/www/explorer.dragonx.is/bin/update_blocks_redis.pl

@ -57,10 +57,10 @@ for my $h ($height-80 .. $height) {
my $hash = qx!$cli -ac_name=$acname getblockhash $h!;
chomp $hash;
my $blockdir = "$root/var/www/$domain/block/$hash";
my $blockdir = "$root/block/$hash";
if (!-e "$basedir/block/$h") {
# make /block/HEIGHT work
my $cmd = "ln -s $blockdir $root/var/www/$domain/block/$h";
my $cmd = "ln -s $blockdir $root/block/$h";
qx{$cmd};
warn $cmd;
}
@ -122,9 +122,9 @@ HTML
next if $@;
$TX->{$tx} = $o;
my $tx_dir = "$root/var/www/$domain/tx/$tx";
my $tx_file = "$root/var/www/$domain/tx/$tx/index.html";
my $tx_template_file = "$root/var/www/$domain/tx/template.html";
my $tx_dir = "$root/tx/$tx";
my $tx_file = "$root/tx/$tx/index.html";
my $tx_template_file = "$root/tx/template.html";
my $tx_template = readfile($tx_template_file);
my $txtime = localtime($o->{time});
#my $txsize = $o->{size} . " bytes";

Loading…
Cancel
Save