From: Dessalines Date: Mon, 22 Jun 2020 14:53:03 +0000 (-0400) Subject: Checking for imagemagick install. X-Git-Url: http://these/git/%22https:/nerdica.net/%7B%24%7B%60data:application/static/%24%7B%60data:application/%7BallRss%7D?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