#!/bin/bash
# 2024-12

[ $(id -u) -eq 0 ] || echo "需要用root用户操作!"
[ $(id -u) -eq 0 ] || exit 4;

#获取脚本根目录，并设为只读
readonly INITDIR=$(cd $(dirname $0); dirname "$PWD")

yum install -y  $INITDIR/file/ffmpeg/*.rpm
ffmpeg -version &> /dev/null &&  echo "ffmpeg插件安装完成" && cp /usr/bin/ffmpeg /home/tomcat-clbs || echo  -e "\003[31mffmpeg插件安装不成功！\033[0m"
