X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=remoteglot.pl;h=10dead9315e21da0d4879bc384084f35cbf5f426;hb=352d2a6829b4144ba1ad156c08f9b3332bc73d0f;hp=dd913f6a6855b45263c043691a380da6514a2920;hpb=f19e1618521811dad0e260ff79645d7055b1b7b7;p=remoteglot-book diff --git a/remoteglot.pl b/remoteglot.pl index dd913f6..10dead9 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -588,11 +588,11 @@ sub output_json { } $json->{'refutation_lines'} = \%refutation_lines; - open my $fh, ">/srv/analysis.sesse.net/www/analysis.json.tmp" + open my $fh, ">", $remoteglotconf::json_output . ".tmp" or return; print $fh JSON::XS::encode_json($json); close $fh; - rename("/srv/analysis.sesse.net/www/analysis.json.tmp", "/srv/analysis.sesse.net/www/analysis.json"); + rename($remoteglotconf::json_output . ".tmp", $remoteglotconf::json_output); } sub uciprint {