diff --git a/manifest.toml b/manifest.toml index 27f7c4e..0208de8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -72,4 +72,4 @@ ram.runtime = "50M" main.default = 8095 [resources.apt] - packages = "texlive, texlive-xetex, redis-server, latexmk, python3-pygments" + packages = "texlive, texlive-xetex, texlive-base, redis-server, latexmk, python3-pygments" diff --git a/scripts/install b/scripts/install index e76f4a9..e92e344 100755 --- a/scripts/install +++ b/scripts/install @@ -26,12 +26,12 @@ ynh_app_setting_set --app=$app --key=crypto_random --value=$crypto_random # INSTALL DEPENDENCIES #================================================= -# Upgrade NPM -ynh_npm install --global npm@latest - ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_mongo +# Upgrade NPM +ynh_npm install --global npm@latest + #================================================= # CREATE A MONGODB DATABASE #================================================= diff --git a/scripts/restore b/scripts/restore index 442e8ba..376fc7a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -48,11 +48,12 @@ chown -R $app:www-data "$data_dir" #================================================= ynh_script_progression --message="Reinstalling dependencies..." -# Define and install dependencies -ynh_npm install --global npm@latest ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_mongo +# Upgrade NPM +ynh_npm install --global npm@latest + #================================================= # RESTORE THE MONGODB DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 99cc615..eb0ccca 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -69,11 +69,14 @@ ynh_add_nginx_config #================================================= # UPGRADE DEPENDENCIES #================================================= -#REMOVEME? ynh_script_progression --message="Upgrading dependencies..." +ynh_script_progression --message="Upgrading dependencies..." ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_mongo +# Upgrade NPM +ynh_npm install --global npm@latest + #================================================= # SPECIFIC UPGRADE #=================================================