Update install.sh

pull/632/head
Mr Chen 6 months ago
parent b66ab079ed
commit c6418069fb
  1. 5
      plugins/openresty/versions/rmtp/install.sh

@ -131,14 +131,15 @@ Install_openresty()
fi fi
# rtmp推流功能 # rtmp推流功能
nginx_rtmp_ver=1.2.2
if [ ! -f ${openrestyDir}/nginx-rtmp-module.tar.gz ];then if [ ! -f ${openrestyDir}/nginx-rtmp-module.tar.gz ];then
wget --no-check-certificate -O ${openrestyDir}/nginx-rtmp-module.tar.gz https://github.com/arut/nginx-rtmp-module/archive/refs/tags/v1.2.2.tar.gz wget --no-check-certificate -O ${openrestyDir}/nginx-rtmp-module.tar.gz https://github.com/arut/nginx-rtmp-module/archive/refs/tags/v${nginx_rtmp_ver}.tar.gz
fi fi
if [ ! -d ${openrestyDir}/nginx-rtmp-module.tar.gz ];then if [ ! -d ${openrestyDir}/nginx-rtmp-module.tar.gz ];then
cd ${openrestyDir} && tar -zxvf nginx-rtmp-module.tar.gz cd ${openrestyDir} && tar -zxvf nginx-rtmp-module.tar.gz
fi fi
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/nginx-rtmp-module" OPTIONS="${OPTIONS} --add-module=${openrestyDir}/nginx-rtmp-module-${nginx_rtmp_ver}"
cd ${openrestyDir}/openresty-${VERSION} && ./configure \ cd ${openrestyDir}/openresty-${VERSION} && ./configure \

Loading…
Cancel
Save