Rétablir l’icône YunoHost de Globinours

This commit is contained in:
Alexandre NOEL 2026-09-04 12:34:45 +02:00
commit 9c7253a837
7 changed files with 15 additions and 2 deletions

View file

@ -12,7 +12,7 @@ Lightweight animal shelter management
[![🌐 Official app website](https://img.shields.io/badge/Official_app_website-darkgreen?style=for-the-badge)](https://globinours.fr) [![🌐 Official app website](https://img.shields.io/badge/Official_app_website-darkgreen?style=for-the-badge)](https://globinours.fr)
[![App Demo](https://img.shields.io/badge/App_Demo-blue?style=for-the-badge)](https://demo.globinours.fr) [![App Demo](https://img.shields.io/badge/App_Demo-blue?style=for-the-badge)](https://demo.globinours.fr)
[![Version: 1.0.0-rc.3~ynh12](https://img.shields.io/badge/Version-1.0.0--rc.3~ynh12-rgb(18,138,11)?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/globinours/) [![Version: 1.0.0-rc.3~ynh13](https://img.shields.io/badge/Version-1.0.0--rc.3~ynh13-rgb(18,138,11)?style=for-the-badge)](https://ci-apps.yunohost.org/ci/apps/globinours/)
<div align="center"> <div align="center">
<a href="https://apps.yunohost.org/app/globinours"><img height="100px" src="https://github.com/YunoHost/yunohost-artwork/raw/refs/heads/main/badges/neopossum-badges/badge_more_info_on_the_appstore.svg"/></a> <a href="https://apps.yunohost.org/app/globinours"><img height="100px" src="https://github.com/YunoHost/yunohost-artwork/raw/refs/heads/main/badges/neopossum-badges/badge_more_info_on_the_appstore.svg"/></a>

View file

@ -5,7 +5,7 @@ id = "globinours"
name = "Globinours" name = "Globinours"
description.en = "Lightweight animal shelter management" description.en = "Lightweight animal shelter management"
description.fr = "Gestion légère et complète pour refuges animaliers" 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"] maintainers = ["OverSu"]
[upstream] [upstream]

View file

@ -6,6 +6,12 @@
php_upload_max_filesize="250M" 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() { prepare_persistent_paths() {
for path_to_replace in "$install_dir/data" "$install_dir/storage" "$install_dir/public/media"; do 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 if [[ -e "$path_to_replace" || -L "$path_to_replace" ]]; then

View file

@ -20,6 +20,7 @@ ynh_setup_source --dest_dir="$install_dir"
#================================================= #=================================================
prepare_persistent_paths prepare_persistent_paths
install_yunohost_logo
#================================================= #=================================================
# SYSTEM CONFIGURATION # SYSTEM CONFIGURATION

View file

@ -13,6 +13,10 @@ source /usr/share/yunohost/helpers
ynh_script_progression "Removing system configurations related to $app..." 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_nginx
ynh_config_remove_phpfpm ynh_config_remove_phpfpm

View file

@ -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" ynh_restore "/etc/php/$php_version/fpm/pool.d/$app.conf"
prepare_persistent_paths prepare_persistent_paths
install_yunohost_logo
ynh_exec_as_app php "$install_dir/scripts/migrate.php" ynh_exec_as_app php "$install_dir/scripts/migrate.php"
ynh_systemctl --service="php$php_version-fpm" --action=reload ynh_systemctl --service="php$php_version-fpm" --action=reload

View file

@ -38,6 +38,7 @@ ynh_setup_source --dest_dir="$install_dir" --full_replace --keep="data storage p
#================================================= #=================================================
prepare_persistent_paths prepare_persistent_paths
install_yunohost_logo
ynh_config_add_phpfpm ynh_config_add_phpfpm
ynh_config_add_nginx ynh_config_add_nginx
ynh_exec_as_app php "$install_dir/scripts/migrate.php" ynh_exec_as_app php "$install_dir/scripts/migrate.php"