Skip to content

Commit

Permalink
Fix json generation when interna server is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierBerger committed Jan 4, 2015
1 parent e7815e2 commit 4825125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpimonitor/rpimonitord
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,11 @@ sub Run
close(FILE);
open(FILE, "> $configuration->{'daemon'}->{'webroot'}/menu.json")
or warn $!;
print FILE to_json(\%{$configuration->{'menu'}});
print FILE to_json(\%{$configuration->{'web'}->{'menu'}});
close(FILE);
open(FILE, "> $configuration->{'daemon'}->{'webroot'}/addons.json")
or warn $!;
print FILE to_json(\%{$configuration->{'web'}->{'addons'}});
print FILE to_json(\@{$configuration->{'web'}->{'addons'}});
close(FILE);
open(FILE, "> $configuration->{'daemon'}->{'webroot'}/version.json")
or warn $!;
Expand Down

0 comments on commit 4825125

Please sign in to comment.