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:
parent
b0f497f83b
commit
01ff435ee8
4 changed files with 12 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
# dependencies used by the app
|
||||
pkg_dependencies="mongodb mongodb-server mongo-tools"
|
||||
nodejs_version=12.15.0
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -75,7 +75,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
|||
#=================================================
|
||||
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_install_app_dependencies $pkg_dependencies
|
||||
|
|
|
@ -84,7 +84,7 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750
|
|||
ynh_print_info --message="Reinstalling dependencies..."
|
||||
|
||||
# Define and install dependencies
|
||||
ynh_install_nodejs --nodejs_version="8.16.2"
|
||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
ynh_use_nodejs
|
||||
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
|
|
@ -138,7 +138,7 @@ fi
|
|||
if ynh_version_gt "3.55~ynh1" "${previous_version}" ; then
|
||||
# Install dependencies
|
||||
ynh_remove_nodejs
|
||||
ynh_install_nodejs --nodejs_version="8.16.2"
|
||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
ynh_use_nodejs
|
||||
|
||||
# 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"
|
||||
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
|
||||
#=================================================
|
||||
|
@ -214,7 +221,7 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
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_install_app_dependencies $pkg_dependencies
|
||||
|
|
Loading…
Reference in a new issue