diff --git a/scripts/_common.sh b/scripts/_common.sh index 944a65e..9195d57 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,6 +4,8 @@ # COMMON VARIABLES #================================================= +nodejs_version=18 + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 2631eeb..7389271 100755 --- a/scripts/install +++ b/scripts/install @@ -12,9 +12,17 @@ source ynh_redis #================================================= # APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC) +#================================================= +# INSTALL NODEJS +#================================================= +ynh_script_progression --message="Installing dependencies..." --weight=1 + +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= + ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from manifest.toml diff --git a/scripts/restore b/scripts/restore index 57f7dd4..edb12c5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -10,6 +10,12 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers +#================================================= +# INSTALL NODEJS +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=1 + +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= # RESTORE THE APP MAIN DIR #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index e119b44..1e1cd11 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -2,6 +2,13 @@ #================================================= # GENERIC START +#================================================= +# INSTALL NODEJS +#================================================= +ynh_script_progression --message="Upgrading dependencies..." --weight=1 + +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + #================================================= # IMPORT GENERIC HELPERS #=================================================