From 7bf5f6b69801d59c023563b1096a2b27b1b44312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 4 Aug 2024 22:07:39 +0200 Subject: [PATCH] cleaning --- manifest.toml | 4 ++-- scripts/backup | 2 +- scripts/install | 2 ++ scripts/remove | 10 ---------- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/manifest.toml b/manifest.toml index d482055..d65d87c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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 diff --git a/scripts/backup b/scripts/backup index 74cc404..d744b14 100644 --- a/scripts/backup +++ b/scripts/backup @@ -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" diff --git a/scripts/install b/scripts/install index 6edf40f..941613f 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/remove b/scripts/remove index 54c4268..ad7764d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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 #=================================================