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
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ ynh_setup_source --dest_dir="$install_dir"
|
|||
#=================================================
|
||||
|
||||
prepare_persistent_paths
|
||||
install_yunohost_logo
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue