diff options
| author | yalh76 <yalh@yahoo.com> | 2020-05-19 18:44:16 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2020-05-19 18:44:16 +0200 |
| commit | aac5dadc34f4810b852f1836576272eb52e115a1 (patch) | |
| tree | 917cd23434efbcdce42a2b3ed01376cb3ea08d5d /scripts | |
| parent | d6ad96999ea61b292d212ebc00f0d1ef2eecff72 (diff) | |
| download | mastodon_ynh-aac5dadc34f4810b852f1836576272eb52e115a1.tar.gz mastodon_ynh-aac5dadc34f4810b852f1836576272eb52e115a1.tar.bz2 mastodon_ynh-aac5dadc34f4810b852f1836576272eb52e115a1.zip | |
$NODEJS_VERSION factorisation
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/_common.sh | 2 | ||||
| -rw-r--r-- | scripts/install | 2 | ||||
| -rw-r--r-- | scripts/upgrade | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/scripts/_common.sh b/scripts/_common.sh index bb0fe95..0c5fb0e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,6 +11,8 @@ RUBY_VERSION="2.6.5" BUNDLER_VERSION="1.17.3" +NODEJS_VERSION="10" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 510701f..8f4f223 100644 --- a/scripts/install +++ b/scripts/install @@ -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" diff --git a/scripts/upgrade b/scripts/upgrade index ee97cde..da0e7bb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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" |
