From b40f40e2805a8b2f05e770078a9de2461dff0bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:17:57 +0100 Subject: [PATCH 1/5] Update upgrade --- scripts/upgrade | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #================================================= From 0a5c4d21c81bfbe63db955e2d559584365626c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:18:14 +0100 Subject: [PATCH 2/5] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From aaf317ec609b6e07daaa742a209e876119d1f234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:20:23 +0100 Subject: [PATCH 3/5] Update change_url --- scripts/change_url | 2 ++ 1 file changed, 2 insertions(+) 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 #================================================= From 2c3b8ab555e089a125e5b368b28ebb8e2e6662d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:24:19 +0100 Subject: [PATCH 4/5] Update install --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index adef410..589b1d4 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 + rm -rf .yarn/berry popd #================================================= From 599a79641ecce845f0bb81e411cf34706e5c2ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 9 Dec 2023 14:21:49 +0100 Subject: [PATCH 5/5] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 589b1d4..2a06a84 100755 --- a/scripts/install +++ b/scripts/install @@ -63,7 +63,7 @@ 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 - rm -rf .yarn/berry + ynh_secure_remove .yarn/berry popd #=================================================