1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/petrolette_ynh.git synced 2024-09-03 19:56:26 +02:00
This commit is contained in:
Éric Gaspar 2023-09-21 15:06:23 +02:00
parent 6fdbd627e7
commit 96afdfb122
2 changed files with 2 additions and 3 deletions

View file

@ -57,9 +57,8 @@ pushd $install_dir
fi fi
[[ -v HOME ]] && TMP_HOME=$HOME [[ -v HOME ]] && TMP_HOME=$HOME
HOME=$(pwd) HOME=$(pwd)
export NODE_ENV=production
ynh_use_nodejs ynh_use_nodejs
ynh_npm install --ignore-scripts ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production $ynh_npm install --ignore-scripts
[[ -v TMP_HOME ]] && HOME=$TMP_HOME || unset HOME [[ -v TMP_HOME ]] && HOME=$TMP_HOME || unset HOME
popd popd

View file

@ -69,7 +69,7 @@ pushd $install_dir
[[ -v HOME ]] && TMP_HOME=$HOME [[ -v HOME ]] && TMP_HOME=$HOME
HOME=$(pwd) HOME=$(pwd)
ynh_use_nodejs ynh_use_nodejs
ynh_npm update ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production $ynh_npm install --ignore-scripts
[[ -v TMP_HOME ]] && HOME=$TMP_HOME || unset HOME [[ -v TMP_HOME ]] && HOME=$TMP_HOME || unset HOME
popd popd