@@ -13,15 +13,7 @@ setting_up_container
1313network_check
1414update_os
1515
16- msg_info " Installing FFmpeg (Patience)"
17- cd /usr/local/bin
18- curl -fsSL " https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" -o " ffmpeg-release-amd64-static.tar.xz"
19- $STD tar -xvf ffmpeg-release-amd64-static.tar.xz
20- rm -f ffmpeg-* .tar.xz
21- cd ffmpeg-*
22- mv ffmpeg ffprobe /usr/local/bin/
23- rm -rf /usr/local/bin/ffmpeg-*
24- msg_ok " Installed FFmpeg"
16+ FFMPEG_VERSION=" latest" FFMPEG_TYPE=" medium" setup_ffmpeg
2517
2618msg_info " Setting Up Hardware Acceleration"
2719$STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
@@ -34,15 +26,7 @@ if [[ "$CTTYPE" == "0" ]]; then
3426fi
3527msg_ok " Set Up Hardware Acceleration"
3628
37- msg_info " Installing ErsatzTV"
38- temp_file=$( mktemp)
39- cd /opt
40- RELEASE=$( curl -fsSL https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep -oP ' "tag_name": "\K[^"]+' | head -n 1)
41- curl -fsSL " https://github.com/ErsatzTV/ErsatzTV/releases/download/${RELEASE} /ErsatzTV-${RELEASE} -linux-x64.tar.gz" -o " $temp_file "
42- tar -xzf " $temp_file "
43- mv /opt/ErsatzTV-${RELEASE} -linux-x64 /opt/ErsatzTV
44- echo " ${RELEASE} " > " /opt/${APPLICATION} _version.txt"
45- msg_ok " Installed ErsatzTV"
29+ fetch_and_deploy_gh_release " ersatztv" " ErsatzTV/ErsatzTV" " prebuild" " latest" " /opt/ErsatzTV" " *linux-x64.tar.gz"
4630
4731msg_info " Creating Service"
4832cat << EOF >/etc/systemd/system/ersatzTV.service
@@ -53,8 +37,8 @@ After=multi-user.target
5337[Service]
5438Type=simple
5539User=root
56- WorkingDirectory=/opt/ErsatzTV
57- ExecStart=/opt/ErsatzTV/ErsatzTV
40+ WorkingDirectory=/opt/ErsatzTV
41+ ExecStart=/opt/ErsatzTV/ErsatzTV
5842Restart=always
5943RestartSec=30
6044
@@ -68,7 +52,6 @@ motd_ssh
6852customize
6953
7054msg_info " Cleaning up"
71- rm -f ${temp_file}
7255$STD apt-get -y autoremove
7356$STD apt-get -y autoclean
7457msg_ok " Cleaned"
0 commit comments