From 5872658f8ceeee372be35ebd7fdd86e568cf8646 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 22 Jun 2020 10:53:03 -0400 Subject: Checking for imagemagick install. --- docker/prod/migrate-pictshare-to-pictrs.bash | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docker') diff --git a/docker/prod/migrate-pictshare-to-pictrs.bash b/docker/prod/migrate-pictshare-to-pictrs.bash index 14ec07f2..ea3007a6 100644 --- a/docker/prod/migrate-pictshare-to-pictrs.bash +++ b/docker/prod/migrate-pictshare-to-pictrs.bash @@ -19,8 +19,12 @@ if [[ -z $(docker-compose ps | grep pictrs) ]]; then exit fi -echo "Installing imagemagick to convert .webp images to .jpg" -apt install imagemagick -y +if [[ -z $(type -P convert) ]]; then + echo "Installing imagemagick to convert .webp images to .jpg" + apt install imagemagick -y +else + echo "Imagemagick already installed." +fi echo "Stopping Lemmy so that users dont upload new images during the migration" docker-compose stop lemmy -- cgit v1.2.3