mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
check imagemagick before removing
This commit is contained in:
parent
16baeffe65
commit
864a514380
1 changed files with 5 additions and 3 deletions
|
@ -88,9 +88,11 @@ then
|
|||
fi
|
||||
|
||||
#Restore Imagick policy
|
||||
if [ -z /etc/ImageMagick-6/policy.xml ]; then
|
||||
ynh_replace_string --match_string="<policy domain="coder" rights="read" pattern="PDF" />" \
|
||||
--replace_string="<policy domain="coder" rights="none" pattern="PDF" />" \
|
||||
--target_file="/etc/ImageMagick-6/policy.xml"
|
||||
fi
|
||||
|
||||
# Remove the log files
|
||||
ynh_script_progression --message="Removing log file..." --weight=1
|
||||
|
|
Loading…
Add table
Reference in a new issue