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().
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().