serve-analysis.js does not need write access.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 24 Jan 2016 21:54:05 +0000 (22:54 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 24 Jan 2016 21:54:05 +0000 (22:54 +0100)
www/serve-analysis.js

index 2a53e36..1622be1 100644 (file)
@@ -139,7 +139,7 @@ var reread_file = function(event, filename) {
        json_lock = 1;
 
        console.log("Rereading " + json_filename);
-       fs.open(json_filename, 'r+', function(err, fd) {
+       fs.open(json_filename, 'r', function(err, fd) {
                if (err) throw err;
                fs.fstat(fd, function(err, st) {
                        if (err) throw err;