mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Update: Update to nodejs 16
This commit is contained in:
parent
3b495088bc
commit
5680fa1837
2 changed files with 7 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
RUBY_VERSION="2.7.3"
|
RUBY_VERSION="2.7.3"
|
||||||
NODEJS_VERSION="15.11.0"
|
NODEJS_VERSION="16"
|
||||||
|
|
||||||
syncing_server_js_version="1.42.9"
|
syncing_server_js_version="1.42.9"
|
||||||
auth_version="1.29.0"
|
auth_version="1.29.0"
|
||||||
|
|
|
@ -275,6 +275,12 @@ if [ -e "$final_path/live/auth-worker" ]; then
|
||||||
ynh_secure_remove --file="$final_path/live/auth-worker"
|
ynh_secure_remove --file="$final_path/live/auth-worker"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove nodejs if current version is lower than 2021.11.22
|
||||||
|
if ynh_compare_current_package_version --comparison lt --version 2021.11.22~ynh1
|
||||||
|
then
|
||||||
|
ynh_remove_nodejs
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -386,7 +392,6 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue