From 5cd47d7cc0605e00db2416c1738532a804d3069e Mon Sep 17 00:00:00 2001 From: vincent-lucy Date: Wed, 15 May 2024 10:30:44 +0200 Subject: [PATCH] Update restore: Tweaking imagemagick conf to allow generation of thumbnails PDF --- scripts/restore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/restore b/scripts/restore index cd1ea62..8aad9e9 100755 --- a/scripts/restore +++ b/scripts/restore @@ -43,6 +43,13 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +#================================================= +# TWEAK IMAGICK CONFIGURATION TO ALLOW PDF THUMBNAILS GENERATION +#================================================= +ynh_script_progression --message="Tweaking imagemagick conf to allow generation of thumbnails PDF" --weight=1 + +sed -i 's/^\s*/g' /etc/ImageMagick-*/policy.xml + #================================================= # GENERIC FINALIZATION #=================================================