Checking for imagemagick install.

This commit is contained in:
Dessalines 2020-06-22 10:53:03 -04:00
parent cb128256ed
commit 5872658f8c

View File

@ -19,8 +19,12 @@ if [[ -z $(docker-compose ps | grep pictrs) ]]; then
exit exit
fi fi
if [[ -z $(type -P convert) ]]; then
echo "Installing imagemagick to convert .webp images to .jpg" echo "Installing imagemagick to convert .webp images to .jpg"
apt install imagemagick -y apt install imagemagick -y
else
echo "Imagemagick already installed."
fi
echo "Stopping Lemmy so that users dont upload new images during the migration" echo "Stopping Lemmy so that users dont upload new images during the migration"
docker-compose stop lemmy docker-compose stop lemmy