Checking for imagemagick install.
This commit is contained in:
parent
cb128256ed
commit
5872658f8c
1 changed files with 6 additions and 2 deletions
8
docker/prod/migrate-pictshare-to-pictrs.bash
vendored
8
docker/prod/migrate-pictshare-to-pictrs.bash
vendored
|
@ -19,8 +19,12 @@ if [[ -z $(docker-compose ps | grep pictrs) ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing imagemagick to convert .webp images to .jpg"
|
if [[ -z $(type -P convert) ]]; then
|
||||||
apt install imagemagick -y
|
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"
|
echo "Stopping Lemmy so that users dont upload new images during the migration"
|
||||||
docker-compose stop lemmy
|
docker-compose stop lemmy
|
||||||
|
|
Loading…
Reference in a new issue