From ab15547d140c69eca32b6bb424a99949be0d3797 Mon Sep 17 00:00:00 2001 From: jeongchanmin Date: Wed, 10 Jul 2024 15:06:37 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20[Refactor]=20imageMagic=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ebextensions-dev/02-ffmpeg-package.config | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.ebextensions-dev/02-ffmpeg-package.config b/.ebextensions-dev/02-ffmpeg-package.config index 714c7d9..9d36580 100644 --- a/.ebextensions-dev/02-ffmpeg-package.config +++ b/.ebextensions-dev/02-ffmpeg-package.config @@ -1,17 +1,11 @@ -packages: - yum: - ImageMagick: [] - ImageMagick-devel: [] commands: 01-wget: - command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" + command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz" 02-mkdir: command: "if [ ! -d /opt/ffmpeg ] ; then mkdir -p /opt/ffmpeg; fi" 03-tar: - command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg" + command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip 1" 04-ln: - command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-4.2.2-amd64-static/ffmpeg /usr/bin/ffmpeg; fi" + command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -s /opt/ffmpeg/ffmpeg /usr/bin/ffmpeg; fi" 05-ln: - command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffmpeg-4.2.2-amd64-static/ffprobe /usr/bin/ffprobe; fi" - 06-pecl: - command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi" \ No newline at end of file + command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -s /opt/ffmpeg/ffprobe /usr/bin/ffprobe; fi"