diff --git a/scripts/_common.sh b/scripts/_common.sh index 63e1450..109b888 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,6 +8,7 @@ pkg_dependencies="" nodejs_version=14 + facilmap_version=3.1.0 #================================================= diff --git a/scripts/remove b/scripts/remove index 949ef1b..338deb3 100755 --- a/scripts/remove +++ b/scripts/remove @@ -58,12 +58,6 @@ ynh_script_progression --message="Removing dependencies..." --weight=3 # Remove metapackage and its dependencies ynh_remove_app_dependencies - -#================================================= -# REMOVE NODEJS -#================================================= -ynh_script_progression --message="Removing NodeJS version for facilmap..." --weight=4 - ynh_remove_nodejs #================================================= diff --git a/scripts/restore b/scripts/restore index 5f1d6d4..65a6c2d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -79,7 +79,6 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=10 # Define and install dependencies ynh_install_app_dependencies $pkg_dependencies - ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= @@ -114,14 +113,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=5 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Server started" -#================================================= -# RESTORE VARIOUS FILES -#================================================= - -#ynh_restore_file --origin_path="/etc/cron.d/$app" - -#ynh_restore_file --origin_path="/etc/$app/" - #================================================= # RESTORE THE LOGROTATE CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 4b6d3a8..2b06158 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -95,7 +95,6 @@ ynh_add_nginx_config ynh_script_progression --message="Upgrading dependencies..." --weight=10 ynh_install_app_dependencies $pkg_dependencies - ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= @@ -111,7 +110,6 @@ pushd "$final_path" ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install --prefix "$final_path" -g facilmap-server@"$facilmap_version" popd - #================================================= # SETUP SYSTEMD #=================================================