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

Upgrade NodeJS version and add test to remove older version

This commit is contained in:
tituspijean 2021-06-09 20:18:33 +02:00
parent 74dc146f14
commit b38178d683
2 changed files with 5 additions and 1 deletions

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES
#=================================================
nodejs_version=12
nodejs_version=16
#=================================================
# PERSONAL HELPERS

View file

@ -73,6 +73,10 @@ if ! ynh_permission_exists --permission="admin"; then
ynh_permission_create --permission="admin" --url="/admin" --label="admin" --show_tile=true
fi
if [ $(ynh_app_setting_get --app=$app --key=nodejs_version) != $nodejs_version) ]; then
ynh_remove_nodejs
fi
#=================================================
# CLOSING PORT
#=================================================