From 6525fc098e7d625113f612b45b7cf78b68b01078 Mon Sep 17 00:00:00 2001 From: philtrep Date: Thu, 29 Dec 2016 15:01:23 -0500 Subject: [PATCH] Add yarn and npm installed by www-app user --- node/scripts/run-nodock.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/scripts/run-nodock.sh b/node/scripts/run-nodock.sh index 00c2afa..fa6093e 100644 --- a/node/scripts/run-nodock.sh +++ b/node/scripts/run-nodock.sh @@ -11,9 +11,9 @@ fi cd $PROJECT_PATH if [[ $YARN = true ]]; then - yarn install + su -c "cd $PROJECT_PATH; yarn" -s /bin/bash www-app else - npm install + su -c "cd $PROJECT_PATH; npm i" -s /bin/bash www-app fi su -c "cd $PROJECT_PATH; $SCRIPT" -s /bin/bash www-app