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

Merge pull request #37 from vincent-lucy/patch-1

Update manifest.toml add php8.2-imagick
This commit is contained in:
eric_G 2024-05-15 11:26:51 +02:00 committed by GitHub
commit be4d89385a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 1 deletions

View file

@ -60,7 +60,7 @@ ram.runtime = "50M"
main.url = "/" main.url = "/"
[resources.apt] [resources.apt]
packages = "mariadb-server, imagemagick, php8.2-mysql, php8.2-gd, php8.2-mbstring, php8.2-xml" packages = "mariadb-server, imagemagick, php8.2-mysql, php8.2-gd, php8.2-mbstring, php8.2-xml, php8.2-imagick"
[resources.database] [resources.database]
type = "mysql" type = "mysql"

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
#================================================= #=================================================

View file

@ -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" 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*<policy.*PDF.*/<!--\0-->/g' /etc/ImageMagick-*/policy.xml
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -52,6 +52,13 @@ ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# 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
#================================================= #=================================================