From 169c6d45751bea209c3633fcbb41b692cf335778 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 4 May 2020 09:52:26 +0200 Subject: [PATCH] Set variable for nodejs_version 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 84e4c5f..6feef0b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,6 +7,8 @@ # dependencies used by the app pkg_dependencies="ffmpeg postgresql postgresql-contrib openssl g++ redis-server redis-tools mailutils apt-transport-https" +nodejs_version="10" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 2ea1c77..dac4568 100644 --- a/scripts/install +++ b/scripts/install @@ -73,7 +73,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port ynh_print_info --message="Installing dependencies..." # Install nodejs -ynh_install_nodejs --nodejs_version=10 +ynh_install_nodejs --nodejs_version=$nodejs_version # Install dependencies ynh_install_app_dependencies $pkg_dependencies diff --git a/scripts/restore b/scripts/restore index d60859a..d8d8452 100644 --- a/scripts/restore +++ b/scripts/restore @@ -89,7 +89,7 @@ chown -R "$app":"$app" "/home/yunohost.app/${app}/storage" ynh_print_info --message="Reinstalling dependencies..." # Install nodejs -ynh_install_nodejs --nodejs_version=10 +ynh_install_nodejs --nodejs_version=$nodejs_version # Install dependencies ynh_install_app_dependencies $pkg_dependencies diff --git a/scripts/upgrade b/scripts/upgrade index 5e499c0..5957bf5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -144,7 +144,7 @@ ynh_print_info --message="Upgrading dependencies..." # Install nodejs ynh_remove_nodejs --nodejs_version=8 -ynh_install_nodejs --nodejs_version=10 +ynh_install_nodejs --nodejs_version=$nodejs_version # Install dependencies ynh_install_app_dependencies $pkg_dependencies