afaundez / nodenv-cookbook

Nodenv Chef Cookbook.
https://supermarket.chef.io/cookbooks/nodenv
MIT License
1 stars 4 forks source link

Fix/use user property for installing node build #16

Closed wittro closed 4 years ago

wittro commented 4 years ago

ref to https://github.com/afaundez/nodenv-cookbook/pull/14

A fix for the installation of the node-build plugin to use privileges when installing to unprivileged users.

There are so many supported platforms that I couldn't run all of them, but I added a test to check permissions in the plugins directory, as follows

(snip)
  Directory /home/user-with-nodenv/.nodenv/plugins
       should exist
       owner should eq "user-with-nodenv"
       group should eq "user-with-nodenv"
wittro commented 4 years ago

Thanks!

afaundez commented 4 years ago

Thanks to you, @wittro!