Rétablir l’icône YunoHost de Globinours
This commit is contained in:
parent
7a5f10624d
commit
9c7253a837
7 changed files with 15 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ Lightweight animal shelter management
|
||||||
|
|
||||||
[](https://globinours.fr)
|
[](https://globinours.fr)
|
||||||
[](https://demo.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/)
|
||||||
|
|
||||||
<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>
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
prepare_persistent_paths
|
prepare_persistent_paths
|
||||||
|
install_yunohost_logo
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue