From 26adf6118b78baae11b050e4e9731317cc6b513f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 30 Jan 2019 17:52:04 +0100 Subject: [PATCH] fix sudo npm --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 23380ab..e1238d3 100644 --- a/scripts/install +++ b/scripts/install @@ -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"