Skip to content

Commit

Permalink
ImageMagick config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cfgnunes committed Apr 11, 2024
1 parent fba0384 commit 0f54eb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,8 @@ _step_install_dependencies() {
local imagemagick_config="/etc/ImageMagick-6/policy.xml"
if [[ -f "$imagemagick_config" ]]; then
printf " > Fixing write permission with PDF in ImageMagick...\n"
sudo sed -i 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' "$imagemagick_config"
sudo sed -i 's/1GiB/8GiB/' "$imagemagick_config"
sudo sed -i '/shared-secret/d' "$imagemagick_config"
sudo sed -i 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/g' "$imagemagick_config"
sudo sed -i 's/".GiB"/"8GiB"/g' "$imagemagick_config"
fi
}

Expand Down

0 comments on commit 0f54eb1

Please sign in to comment.