fix sudo npm

This commit is contained in:
yalh76 2019-01-30 17:52:04 +01:00
parent 189c62f511
commit 26adf6118b

View File

@ -172,6 +172,8 @@ ynh_system_user_create $app
# ...
#=================================================
chown -R $app: $final_path
pushd $final_path
ynh_use_nodejs
sudo -u $app $nodejs_path/npm install "graphql@^0.13.1"