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:
parent
b0ce090531
commit
efc1ecdfdf
4 changed files with 11 additions and 7 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue