Update scripts/install

This commit is contained in:
denis 2024-11-15 12:18:46 -05:00
parent 29283fa641
commit 9a02b145e2

View file

@ -29,7 +29,7 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Installing dependencies..." --weight=7
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=20
ynh_exec ynh_install_nodejs --nodejs_version=20
#=================================================
# INITIALIZE AND STORE SETTINGS
@ -174,10 +174,10 @@ ynh_config_add_logrotate
pushd $install_dir
ynh_use_nodejs
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend generate
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend migrate
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build
ynh_exec sudo -u $app env $ynh_node_load_PATH yarn install
ynh_exec sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend generate
ynh_exec sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend migrate
ynh_exec sudo -u $app env $ynh_node_load_PATH yarn build
popd
# Installation with curl