From aac5dadc34f4810b852f1836576272eb52e115a1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 19 May 2020 18:44:16 +0200 Subject: [PATCH] $NODEJS_VERSION factorisation --- scripts/_common.sh | 2 ++ scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index bb0fe95..0c5fb0e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,6 +11,8 @@ RUBY_VERSION="2.6.5" BUNDLER_VERSION="1.17.3" +NODEJS_VERSION="10" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 510701f..8f4f223 100644 --- a/scripts/install +++ b/scripts/install @@ -80,7 +80,7 @@ ynh_app_setting_set --app=$app --key=port_stream --value=$port_stream #================================================= ynh_script_progression --message="Installing dependencies..." --weight=86 -ynh_install_nodejs --nodejs_version="10" +ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_app_dependencies $pkg_dependencies ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" diff --git a/scripts/upgrade b/scripts/upgrade index ee97cde..da0e7bb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -213,7 +213,7 @@ ynh_add_nginx_config 'port_web port_stream' ynh_script_progression --message="Upgrading dependencies..." --weight=24 ynh_remove_nodejs -ynh_install_nodejs --nodejs_version="10" +ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_app_dependencies $pkg_dependencies ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"