diff --git a/scripts/_common.sh b/scripts/_common.sh index b818f0f..9195d57 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -nodejs_version=16 +nodejs_version=18 #================================================= # PERSONAL HELPERS diff --git a/scripts/change_url b/scripts/change_url index 3a9b28d..ecb9a84 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -25,6 +25,8 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config +ynh_add_systemd_config + #================================================= # GENERIC FINALISATION #================================================= diff --git a/scripts/install b/scripts/install index adef410..2a06a84 100755 --- a/scripts/install +++ b/scripts/install @@ -62,6 +62,8 @@ ynh_script_progression --message="Installing $app..." --weight=10 pushd $install_dir ynh_use_nodejs sudo -u $app env $ynh_node_load_PATH BUILD_SEQUENCIAL=1 yarn install --inline-builds + sudo -u $app env $ynh_node_load_PATH yarn cache clean + ynh_secure_remove .yarn/berry popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 49a788d..c95d7e8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,6 +34,14 @@ fi chown -R $app:www-data "$install_dir" +#================================================= +# UPGRADE DEPENDENCIES +#================================================= +ynh_script_progression --message="Upgrading dependencies..." --weight=5 + +# Install Nodejs +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================