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

Set variable for nodejs_version in common.sh

This commit is contained in:
ericgaspar 2020-05-04 09:52:26 +02:00
parent 791d2c9bad
commit 169c6d4575
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 5 additions and 3 deletions

View file

@ -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
#=================================================

View file

@ -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

View file

@ -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

View file

@ -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