Skip to content

Instantly share code, notes, and snippets.

@bogdanRada
Forked from donnykurnia/sed command
Created August 27, 2020 09:26
Show Gist options
  • Save bogdanRada/4f5f98f7a3bf607bc68ddc7f791ab2e9 to your computer and use it in GitHub Desktop.
Save bogdanRada/4f5f98f7a3bf607bc68ddc7f791ab2e9 to your computer and use it in GitHub Desktop.
patch /etc/ImageMagick/policy.xml to allow read and write PDF file
sudo sed -e 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>\n\ \ <policy domain="coder" rights="read|write" pattern="LABEL" \/>/' -i /etc/ImageMagick/policy.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment