1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

$NODEJS_VERSION factorisation

This commit is contained in:
yalh76 2020-05-19 18:44:16 +02:00
parent d6ad96999e
commit aac5dadc34
3 changed files with 4 additions and 2 deletions

View file

@ -11,6 +11,8 @@ RUBY_VERSION="2.6.5"
BUNDLER_VERSION="1.17.3"
NODEJS_VERSION="10"
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -80,7 +80,7 @@ ynh_app_setting_set --app=$app --key=port_stream --value=$port_stream
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=86
ynh_install_nodejs --nodejs_version="10"
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
ynh_install_app_dependencies $pkg_dependencies
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"

View file

@ -213,7 +213,7 @@ ynh_add_nginx_config 'port_web port_stream'
ynh_script_progression --message="Upgrading dependencies..." --weight=24
ynh_remove_nodejs
ynh_install_nodejs --nodejs_version="10"
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
ynh_install_app_dependencies $pkg_dependencies
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"