1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wikijs_ynh.git synced 2024-09-03 20:36:09 +02:00

Back to not sudo

This commit is contained in:
yalh76 2019-01-30 17:23:36 +01:00
parent f0d74fd287
commit 660f31ec1c

View file

@ -172,22 +172,15 @@ ynh_system_user_create $app
# ... # ...
#================================================= #=================================================
chown -R $app: $final_path
ynh_use_nodejs
export PATH="$PATH:$nodejs_path"
( cd $final_path && sudo -u "$app" npm install "graphql@^0.13.1" )
pushd $final_path pushd $final_path
#sudo -u "$app" npm install "graphql@^0.13.1" ynh_use_nodejs
sudo -u "$app" npm install "acorn@^6.0.0" npm install "graphql@^0.13.1"
sudo -u "$app" npm install "babel-core@>=6.0.20" npm install "acorn@^6.0.0"
sudo -u "$app" npm install "eslint@>=5.0.0" npm install "babel-core@>=6.0.20"
sudo -u "$app" npm install npm install "eslint@>=5.0.0"
sudo -u "$app" npm audit fix npm install
sudo -u "$app" npm run build npm audit fix
npm run build
popd popd