Skip to content

Commit 6525fc0

Browse files
committed
Add yarn and npm installed by www-app user
1 parent be62a40 commit 6525fc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/scripts/run-nodock.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ fi
1111
cd $PROJECT_PATH
1212

1313
if [[ $YARN = true ]]; then
14-
yarn install
14+
su -c "cd $PROJECT_PATH; yarn" -s /bin/bash www-app
1515
else
16-
npm install
16+
su -c "cd $PROJECT_PATH; npm i" -s /bin/bash www-app
1717
fi
1818

1919
su -c "cd $PROJECT_PATH; $SCRIPT" -s /bin/bash www-app

0 commit comments

Comments
 (0)