From 9c7253a837988b21d5f2c3a2c7786f908ae75bea Mon Sep 17 00:00:00 2001
From: oversu <95a7002b-481b-4ef3-b578-f9c421550aa4@localhost>
Date: Fri, 4 Sep 2026 12:34:45 +0200
Subject: [PATCH] =?UTF-8?q?R=C3=A9tablir=20l=E2=80=99ic=C3=B4ne=20YunoHost?=
=?UTF-8?q?=20de=20Globinours?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 2 +-
manifest.toml | 2 +-
scripts/_common.sh | 6 ++++++
scripts/install | 1 +
scripts/remove | 4 ++++
scripts/restore | 1 +
scripts/upgrade | 1 +
7 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 7feabce..f3037ec 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ Lightweight animal shelter management
[](https://globinours.fr)
[](https://demo.globinours.fr)
-[?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/globinours/)
+[?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/globinours/)

diff --git a/manifest.toml b/manifest.toml
index 5900318..32fef5c 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -5,7 +5,7 @@ id = "globinours"
name = "Globinours"
description.en = "Lightweight animal shelter management"
description.fr = "Gestion légère et complète pour refuges animaliers"
-version = "1.0.0-rc.3~ynh12"
+version = "1.0.0-rc.3~ynh13"
maintainers = ["OverSu"]
[upstream]
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 1838c3f..51b228d 100755
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -6,6 +6,12 @@
php_upload_max_filesize="250M"
+install_yunohost_logo() {
+ install -D -m 0644 \
+ "$install_dir/resources/branding/Logo_Globinours_maxi.png" \
+ "/usr/share/yunohost/applogos/$app.png"
+}
+
prepare_persistent_paths() {
for path_to_replace in "$install_dir/data" "$install_dir/storage" "$install_dir/public/media"; do
if [[ -e "$path_to_replace" || -L "$path_to_replace" ]]; then
diff --git a/scripts/install b/scripts/install
index af0a8dc..dc09c0b 100755
--- a/scripts/install
+++ b/scripts/install
@@ -20,6 +20,7 @@ ynh_setup_source --dest_dir="$install_dir"
#=================================================
prepare_persistent_paths
+install_yunohost_logo
#=================================================
# SYSTEM CONFIGURATION
diff --git a/scripts/remove b/scripts/remove
index 2dedbda..3d73865 100755
--- a/scripts/remove
+++ b/scripts/remove
@@ -13,6 +13,10 @@ source /usr/share/yunohost/helpers
ynh_script_progression "Removing system configurations related to $app..."
+if [[ -e "/usr/share/yunohost/applogos/$app.png" ]]; then
+ ynh_safe_rm "/usr/share/yunohost/applogos/$app.png"
+fi
+
ynh_config_remove_nginx
ynh_config_remove_phpfpm
diff --git a/scripts/restore b/scripts/restore
index 9e78ed5..3298419 100755
--- a/scripts/restore
+++ b/scripts/restore
@@ -26,6 +26,7 @@ ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore "/etc/php/$php_version/fpm/pool.d/$app.conf"
prepare_persistent_paths
+install_yunohost_logo
ynh_exec_as_app php "$install_dir/scripts/migrate.php"
ynh_systemctl --service="php$php_version-fpm" --action=reload
diff --git a/scripts/upgrade b/scripts/upgrade
index ec102b1..582e61d 100755
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -38,6 +38,7 @@ ynh_setup_source --dest_dir="$install_dir" --full_replace --keep="data storage p
#=================================================
prepare_persistent_paths
+install_yunohost_logo
ynh_config_add_phpfpm
ynh_config_add_nginx
ynh_exec_as_app php "$install_dir/scripts/migrate.php"