aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/_common.sh2
-rw-r--r--scripts/install2
-rw-r--r--scripts/upgrade2
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"