mirror of
https://github.com/YunoHost-Apps/petrolette_ynh.git
synced 2024-09-03 19:56:26 +02:00
fix
This commit is contained in:
parent
6fdbd627e7
commit
96afdfb122
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue