1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/overleaf_ynh.git synced 2024-09-03 19:56:27 +02:00

fix ynh_npm

This commit is contained in:
Thomas 2023-11-19 17:20:03 +01:00 committed by GitHub
parent b0ce090531
commit efc1ecdfdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 7 deletions

View file

@ -72,4 +72,4 @@ ram.runtime = "50M"
main.default = 8095 main.default = 8095
[resources.apt] [resources.apt]
packages = "texlive, texlive-xetex, redis-server, latexmk, python3-pygments" packages = "texlive, texlive-xetex, texlive-base, redis-server, latexmk, python3-pygments"

View file

@ -26,12 +26,12 @@ ynh_app_setting_set --app=$app --key=crypto_random --value=$crypto_random
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================
# Upgrade NPM
ynh_npm install --global npm@latest
ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_install_mongo ynh_install_mongo
# Upgrade NPM
ynh_npm install --global npm@latest
#================================================= #=================================================
# CREATE A MONGODB DATABASE # CREATE A MONGODB DATABASE
#================================================= #=================================================

View file

@ -48,11 +48,12 @@ chown -R $app:www-data "$data_dir"
#================================================= #=================================================
ynh_script_progression --message="Reinstalling dependencies..." 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_nodejs --nodejs_version=$nodejs_version
ynh_install_mongo ynh_install_mongo
# Upgrade NPM
ynh_npm install --global npm@latest
#================================================= #=================================================
# RESTORE THE MONGODB DATABASE # RESTORE THE MONGODB DATABASE
#================================================= #=================================================

View file

@ -69,11 +69,14 @@ ynh_add_nginx_config
#================================================= #=================================================
# UPGRADE DEPENDENCIES # UPGRADE DEPENDENCIES
#================================================= #=================================================
#REMOVEME? ynh_script_progression --message="Upgrading dependencies..." ynh_script_progression --message="Upgrading dependencies..."
ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_install_mongo ynh_install_mongo
# Upgrade NPM
ynh_npm install --global npm@latest
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================