1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

Upgrade nodejs version

This commit is contained in:
yalh76 2020-02-16 11:51:50 +01:00
parent b0f497f83b
commit 01ff435ee8
4 changed files with 12 additions and 4 deletions

View file

@ -6,6 +6,7 @@
# dependencies used by the app # dependencies used by the app
pkg_dependencies="mongodb mongodb-server mongo-tools" pkg_dependencies="mongodb mongodb-server mongo-tools"
nodejs_version=12.15.0
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -75,7 +75,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
#================================================= #=================================================
ynh_print_info --message="Installing dependencies..." ynh_print_info --message="Installing dependencies..."
ynh_install_nodejs --nodejs_version="8.16.2" ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies

View file

@ -84,7 +84,7 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750
ynh_print_info --message="Reinstalling dependencies..." ynh_print_info --message="Reinstalling dependencies..."
# Define and install dependencies # Define and install dependencies
ynh_install_nodejs --nodejs_version="8.16.2" ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies

View file

@ -138,7 +138,7 @@ fi
if ynh_version_gt "3.55~ynh1" "${previous_version}" ; then if ynh_version_gt "3.55~ynh1" "${previous_version}" ; then
# Install dependencies # Install dependencies
ynh_remove_nodejs ynh_remove_nodejs
ynh_install_nodejs --nodejs_version="8.16.2" ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs
# Create a dedicated systemd config # Create a dedicated systemd config
@ -157,6 +157,13 @@ if ynh_version_gt "3.55~ynh1" "${previous_version}" ; then
ynh_store_file_checksum "$config_file" ynh_store_file_checksum "$config_file"
fi fi
if ynh_version_gt "3.79~ynh1" "${previous_version}" ; then
# Install dependencies
ynh_remove_nodejs
ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs
fi
#================================================= #=================================================
# CHECK THE PATH # CHECK THE PATH
#================================================= #=================================================
@ -214,7 +221,7 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_print_info --message="Upgrading dependencies..." ynh_print_info --message="Upgrading dependencies..."
ynh_install_nodejs --nodejs_version="8.16.0" ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs ynh_use_nodejs
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies