gismo141 / homebridge-server

Server plugin for homebridge
https://gismo141.github.io/configure-your-homebridge-2/
152 stars 20 forks source link

npm install|uninstall not working #48

Closed dehsgr closed 6 years ago

dehsgr commented 7 years ago

There is an issue with running plugin (un)installs. The commands in index.js should get prepended "sudo " (e.g. sudo npm install -g ...). Otherwise allowing npm in sudoers file wouldn't make sense as described in wiki. Patching as mentioned allows plugins to be installed correctly while executing homebridge as a service via systemd.

Another patch possibility would be to allow to specify npm base command via config.json file as done for rebooting homebridge or the whole raspberry.

Thank you!

gismo141 commented 6 years ago

Oh thanks for that! Somehow that slipped by! Will update it asap.