1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00
This commit is contained in:
yalh76 2019-02-02 21:20:25 +01:00
parent 257c2bdae3
commit a8baa331fc
2 changed files with 9 additions and 11 deletions

View file

@ -186,12 +186,11 @@ mkdir -p "$final_path/db"
chown -R "$app":"$app" "$final_path"
pushd $final_path
ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --production
#sudo -u $app env PATH=$PATH:$nodejs_path npm install typescript@>=2.0 --save
sudo -u $app env PATH=$PATH:$nodejs_path npm install ts-node --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install ts-node --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
popd
#=================================================

View file

@ -134,12 +134,11 @@ mkdir -p "$final_path/db"
#=================================================
chown -R "$app":"$app" "$final_path"
pushd $final_path
ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm update --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm update --production
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
popd
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.