mirror of
https://github.com/YunoHost-Apps/distbin_ynh.git
synced 2024-09-03 18:26:10 +02:00
cleanup
This commit is contained in:
parent
257c2bdae3
commit
a8baa331fc
2 changed files with 9 additions and 11 deletions
|
@ -186,12 +186,11 @@ mkdir -p "$final_path/db"
|
||||||
|
|
||||||
chown -R "$app":"$app" "$final_path"
|
chown -R "$app":"$app" "$final_path"
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
ynh_use_nodejs
|
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 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 ts-node --production
|
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
|
||||||
sudo -u $app env PATH=$PATH:$nodejs_path npm install --production
|
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
||||||
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -134,12 +134,11 @@ mkdir -p "$final_path/db"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chown -R "$app":"$app" "$final_path"
|
chown -R "$app":"$app" "$final_path"
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
sudo -u $app env PATH=$PATH:$nodejs_path npm update --production
|
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 install --production
|
||||||
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
|
||||||
popd
|
popd
|
||||||
|
|
||||||
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
|
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
|
||||||
|
|
Loading…
Reference in a new issue