From d9832a8f533b9021006c1d67cf62fc1a017722e3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 24 Apr 2020 11:15:29 +0200 Subject: [PATCH] creat nodejs variable in common.sh --- scripts/_common.sh | 2 ++ scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 1a757bb..a0d2a8c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,6 +7,8 @@ # dependencies used by the app pkg_dependencies="python3-pip libffi-dev" +nodejs_version=10 + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 5243596..a404732 100644 --- a/scripts/install +++ b/scripts/install @@ -80,7 +80,7 @@ ynh_script_progression --message="Installing dependencies..." --weight=23 ynh_install_app_dependencies $pkg_dependencies -ynh_exec_warn_less ynh_install_nodejs --nodejs_version=10 +ynh_exec_warn_less ynh_install_nodejs $nodejs_version python3 -m pip install pipenv diff --git a/scripts/restore b/scripts/restore index fa5a800..726b9ad 100644 --- a/scripts/restore +++ b/scripts/restore @@ -75,7 +75,7 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=75 # Define and install dependencies ynh_install_app_dependencies $pkg_dependencies -ynh_exec_warn_less ynh_install_nodejs --nodejs_version=10 +ynh_exec_warn_less ynh_install_nodejs $nodejs_version python3 -m pip install pipenv diff --git a/scripts/upgrade b/scripts/upgrade index 8767b76..65597ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -95,7 +95,7 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=83 ynh_install_app_dependencies $pkg_dependencies -ynh_exec_warn_less ynh_install_nodejs --nodejs_version=10 +ynh_exec_warn_less ynh_install_nodejs $nodejs_version npm install -g configurable-http-proxy