From 6d93ffaa173d52f390df46f42527a762e0fcf8cb Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 8 Apr 2021 20:36:28 +0200 Subject: [PATCH] Change to NODEJS_VERSION var --- scripts/_common.sh | 2 +- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index d531f63..87ae0be 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,7 +7,7 @@ # dependencies used by the app pkg_dependencies="" -nodejsversion=12.16.3 +NODEJS_VERSION=12.16.3 #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index c94c5a8..e9e1a32 100644 --- a/scripts/install +++ b/scripts/install @@ -75,7 +75,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port ynh_script_progression --message="Installing dependencies..." ynh_install_app_dependencies $pkg_dependencies -ynh_install_nodejs --nodejs_version=$nodejsversion +ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_use_nodejs ynh_install_mongo diff --git a/scripts/restore b/scripts/restore index a509e8f..80e6388 100644 --- a/scripts/restore +++ b/scripts/restore @@ -87,7 +87,7 @@ ynh_script_progression --message="Reinstalling dependencies..." # Define and install dependencies ynh_install_app_dependencies $pkg_dependencies -ynh_install_nodejs --nodejs_version=$nodejsversion +ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_use_nodejs ynh_install_mongo diff --git a/scripts/upgrade b/scripts/upgrade index 34ce41e..3a30be3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -175,7 +175,7 @@ ynh_script_progression --message="Upgrading dependencies..." ynh_install_app_dependencies $pkg_dependencies ynh_remove_nodejs -ynh_install_nodejs --nodejs_version=$nodejsversion +ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_use_nodejs ynh_install_mongo