1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/omeka-s_ynh.git synced 2024-09-03 19:56:05 +02:00

Update install: Tweaking imagemagick conf to allow generation of thumbnails PDF

This commit is contained in:
vincent-lucy 2024-05-15 10:29:54 +02:00 committed by GitHub
parent 4517cec08e
commit 01d02d0e2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,13 @@ ynh_add_config --template="../conf/database.ini.default" --destination="$install
chmod 400 "$install_dir/config/database.ini" chmod 400 "$install_dir/config/database.ini"
chown $app "$install_dir/config/database.ini" chown $app "$install_dir/config/database.ini"
#=================================================
# 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*<policy.*PDF.*/<!--\0-->/g' /etc/ImageMagick-*/policy.xml
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================