1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00
This commit is contained in:
Éric Gaspar 2024-08-04 22:07:39 +02:00
parent c9e49e0f45
commit 7bf5f6b698
4 changed files with 5 additions and 13 deletions

View file

@ -7,7 +7,7 @@ name = "Discourse"
description.en = "Discussion platform"
description.fr = "Plateforme de discussion"
version = "2.8.14~ynh4"
version = "2.8.14~ynh5"
maintainers = ["JimboJoe"]
@ -19,7 +19,7 @@ code = "https://github.com/discourse/discourse"
cpe = "cpe:2.3:a:discourse:discourse"
[integration]
yunohost = ">=11.2.12"
yunohost = ">=11.2.20"
architectures = "all"
multi_instance = true
ldap = true

View file

@ -20,7 +20,7 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir"
#=================================================
# BACKUP THE SYSTEM CONFIGURATION
# SYSTEM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"

View file

@ -41,10 +41,12 @@ ynh_app_setting_set --app="$app" --key=unicorn_workers --value=$unicorn_workers
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing Ruby..."
ynh_exec_warn_less ynh_install_ruby --ruby_version="$ruby_version"
ynh_use_ruby
ynh_script_progression --message="Installing NodeJS..."
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================

View file

@ -26,20 +26,10 @@ ynh_remove_logrotate
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# REMOVE THE REDIS DATABASE
#=================================================
ynh_script_progression --message="Removing the redis database..."
ynh_redis_remove_db "$redis_db"
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing NodeJS..."
ynh_remove_nodejs
ynh_script_progression --message="Removing Ruby..."
ynh_remove_ruby
#=================================================