1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plateau_ynh.git synced 2024-09-03 20:06:38 +02:00

Merge pull request #8 from Ddataa/testing

Repair upgrade
This commit is contained in:
DDATAA 2022-12-19 08:43:30 +00:00 committed by GitHub
commit aefe5e5869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 3 deletions

View file

@ -14,7 +14,7 @@
port="666" port="666"
; Checks ; Checks
pkg_linter=1 pkg_linter=1
setup_sub_dir=1 setup_sub_dir=0
setup_root=1 setup_root=1
setup_nourl=0 setup_nourl=0
setup_private=1 setup_private=1

View file

@ -10,8 +10,8 @@
"url": "https://plateau.latelier-des-chercheurs.fr/", "url": "https://plateau.latelier-des-chercheurs.fr/",
"upstream": { "upstream": {
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"website": "https://github.com/l-atelier-des-chercheurs/PLATEAU", "website": "https://latelier-des-chercheurs.fr",
"demo": "https://github.com/l-atelier-des-chercheurs/PLATEAU", "demo": "https://plateau.latelier-des-chercheurs.fr",
"admindoc": "https://github.com/l-atelier-des-chercheurs/PLATEAU", "admindoc": "https://github.com/l-atelier-des-chercheurs/PLATEAU",
"userdoc": "https://github.com/YunoHost-Apps/plateau_ynh", "userdoc": "https://github.com/YunoHost-Apps/plateau_ynh",
"code": "https://github.com/l-atelier-des-chercheurs/PLATEAU" "code": "https://github.com/l-atelier-des-chercheurs/PLATEAU"

View file

@ -133,6 +133,22 @@ ynh_add_nginx_config
# ... # ...
#================================================= #=================================================
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression --message="Upgrading dependencies..."
# Define and install dependencies
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs
#=================================================
# INSTALL PLATEAU
#=================================================
ynh_script_progression --message="Installing Plateau..." --weight=3
cd $final_path
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm install
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================