Browse Source

Correct PDF restrictions for imagemagick

master
fred 1 month ago
parent
commit
9734de08b5
  1. 4
      actions/p4n.swarmscraper.sh
  2. 6
      install.sh

4
actions/p4n.swarmscraper.sh

@ -23,6 +23,10 @@ if [[ -f /etc/sudoers.d/apt ]]; then
sudo apt install -y $i
fi
done
if [[ $(cat /etc/ImageMagick-6/policy.xml | grep PDF) ]]; then
cat /etc/ImageMagick-6/policy.xml | grep -Ev PDF > /tmp/policy.xml
sudo cp /tmp/policy.xml /etc/ImageMagick-6/policy.xml
fi
else
echo "No sudo access for apt install... Please correct situation"
echo "PUT : $USER ALL=(ALL) NOPASSWD:/usr/bin/apt INTO /etc/sudoers.d/apt (use sudo visudo)"

6
install.sh

@ -27,6 +27,12 @@ for i in build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils v4l-utils vl
fi
done
## Correct PDF restrictions for imagemagick
if [[ $(cat /etc/ImageMagick-6/policy.xml | grep PDF) ]]; then
cat /etc/ImageMagick-6/policy.xml | grep -Ev PDF > /tmp/policy.xml
sudo cp /tmp/policy.xml /etc/ImageMagick-6/policy.xml
fi
[[ ! $(which kodi) && "$USER" != "xbian" ]] && sudo apt-get install kodi -y
sudo apt-get install python3-opencv -y ## INSTALLATION IA par reconnaissance d'images
[[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils xclip zenity handbrake* -y

Loading…
Cancel
Save