From d1822efb86da3d177f547d7075f7572928feb60a Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:13:04 +0200 Subject: [PATCH 1/4] Update mongo for Bookworm compatibility --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 7ec06e1..9af5b2e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -mongo_version=6.0 +mongo_version=7.0 # List of services to be installed SERVICES_LIST=(ide preview project data) From a19cb3dc0bce95ff11191fb8caade9b22ccc05b6 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Tue, 11 Jun 2024 09:03:53 +0200 Subject: [PATCH 2/4] bump package version --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 1cf585f..57d8528 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Dont-code Services" description.en = "Install services and databases needed to support Dont-code platform" description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code" -version = "0.3.2~ynh4" +version = "0.3.2~ynh5" maintainers = ["Dont-code Team"] From 64d3dd772caf4d5415ae362396c3692e570e2f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 21 Jun 2024 11:34:07 +0200 Subject: [PATCH 3/4] Don't remove logs on uninstall --- scripts/remove | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/remove b/scripts/remove index 40863fc..038dd17 100755 --- a/scripts/remove +++ b/scripts/remove @@ -29,10 +29,6 @@ done # Remove the dedicated NGINX config ynh_remove_nginx_config -# Remove the app-specific logrotate config -ynh_remove_logrotate - - # Remove a database if it exists, along with the associated user for db_name in "${MONGO_DB_LIST[@]}"; do ynh_mongo_remove_db --db_user=$db_user --db_name="dontCode$tenant$db_name" From a822a30725d3a4b160e1d156d7edc412c7b59a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 21 Jun 2024 11:36:21 +0200 Subject: [PATCH 4/4] Remove the log config but not the log --- scripts/remove | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 038dd17..68acc66 100755 --- a/scripts/remove +++ b/scripts/remove @@ -29,6 +29,10 @@ done # Remove the dedicated NGINX config ynh_remove_nginx_config +# Remove the app-specific logrotate config +ynh_remove_logrotate + + # Remove a database if it exists, along with the associated user for db_name in "${MONGO_DB_LIST[@]}"; do ynh_mongo_remove_db --db_user=$db_user --db_name="dontCode$tenant$db_name" @@ -39,9 +43,6 @@ ynh_remove_mongo _remove_restart_script_and_sudoers -# Remove the log files -ynh_secure_remove --file="/var/log/$app" - #================================================= # END OF SCRIPT #=================================================