From: Dessalines Date: Mon, 22 Jun 2020 14:53:03 +0000 (-0400) Subject: Checking for imagemagick install. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/save/static/maint-mode.css?a=commitdiff_plain;h=5872658f8ceeee372be35ebd7fdd86e568cf8646;p=lemmy.git Checking for imagemagick install. --- 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