diff options
author | Dessalines <tyhou13@gmx.com> | 2020-06-22 10:53:03 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-06-22 10:54:33 -0400 |
commit | 5872658f8ceeee372be35ebd7fdd86e568cf8646 (patch) | |
tree | f91c098b7a94b0a1c94c6fdbbff1bc889718af2f /docker | |
parent | cb128256ed9b5779d696d3de599ef94bfe79a2e6 (diff) |
Checking for imagemagick install.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/prod/migrate-pictshare-to-pictrs.bash | 8 |
1 files changed, 6 insertions, 2 deletions
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 |