1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lemmy_ynh.git synced 2024-09-03 19:36:09 +02:00

Fix ImageMagick download

This commit is contained in:
tituspijean 2023-07-30 13:26:01 +02:00
parent 7ffd19d938
commit ad04f175bb
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,7 @@ ram.runtime = "50M"
[resources.install_dir]
[resources.data_dir]
subdirs = ["pictrs-data", "sled", "exports"]
subdirs = ["pictrs-data", "sled", "exports", "magick"]
[resources.permissions]
main.url = "/"

View file

@ -91,7 +91,7 @@ chown -R $app:$app "$install_dir"
# (Dirty) Install ImageMagick
# Requires 'libfuse2' and 'libimage-exiftool-perl' apt dependencies
wget https://imagemagick.org/archive/binaries/magick -O "$install_dir/pict-rs/magick" -q
curl -f https://imagemagick.org/archive/binaries/magick -o "$install_dir/pict-rs/magick" -s
[ ! -f "$install_dir/pict-rs/magick" ] && ynh_print_err --message="ImageMagick could not be downloaded"
chmod 750 "$install_dir/pict-rs/magick"
chown $app:$app "$install_dir/pict-rs/magick"

View file

@ -130,7 +130,7 @@ then
# (Dirty) Install ImageMagick
# Requires 'libfuse2' and 'libimage-exiftool-perl' apt dependencies
wget https://imagemagick.org/archive/binaries/magick -O "$install_dir/pict-rs/magick" -q
curl -f https://imagemagick.org/archive/binaries/magick -o "$install_dir/pict-rs/magick" -s
[ ! -f "$install_dir/pict-rs/magick" ] && ynh_print_err --message="ImageMagick could not be downloaded"
chmod 750 "$install_dir/pict-rs/magick"
chown $app:$app "$install_dir/pict-rs/magick"