Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/ajax/discoverCameras.php: set NODE_PATH for js tool cmd
In bluecherry-node-onvif package, we bundle the dependencies necessary to avoid relying on packaging of all of them the Debian way. The command "node .../discovery_json/node-onvif.js" doesn't work as it doesn't look for node_modules where we put them, /usr/share/nodejs/onvif/node_modules . This change passes NODE_PATH env var to `node` interpreter command, which is handled as expected by PHP's popen().
- Loading branch information