From 9560d0153c1d5e2421b18b5384355a466b29bd7c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:27:20 +0100 Subject: [PATCH] Add new LXC: NextPVR --- ct/nextpvr.sh | 88 ++++++++++++++++++++++++++++++++++++++ install/nextpvr-install.sh | 46 ++++++++++++++++++++ json/nextpvr.json | 34 +++++++++++++++ 3 files changed, 168 insertions(+) create mode 100644 ct/nextpvr.sh create mode 100644 install/nextpvr-install.sh create mode 100644 json/nextpvr.json diff --git a/ct/nextpvr.sh b/ct/nextpvr.sh new file mode 100644 index 00000000..de755db8 --- /dev/null +++ b/ct/nextpvr.sh @@ -0,0 +1,88 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2024 community-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE +# Source: https://nextpvr.com/ + +function header_info { +clear +cat <<"EOF" + _ __ __ ____ _ ______ + / | / /__ _ __/ /_/ __ \ | / / __ \ + / |/ / _ \| |/_/ __/ /_/ / | / / /_/ / + / /| / __/> /dev/null +apt-get -y upgrade &>/dev/null +cd /opt +wget -q https://nextpvr.com/nextpvr-helper.deb +DEBIAN_FRONTEND=noninteractive dpkg -i nextpvr-helper.deb &>/dev/null + +msg_info "Starting ${APP}" +systemctl start nextpvr-server +msg_ok "Started ${APP}" + +msg_info "Cleaning Up" +rm -rf /opt/nextpvr-helper.deb +msg_ok "Cleaned" +msg_ok "Updated Successfully" +exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${APP} Setup should be reachable by going to the following URL. + ${BL}http://${IP}:8866${CL} \n" diff --git a/install/nextpvr-install.sh b/install/nextpvr-install.sh new file mode 100644 index 00000000..7fba6c2a --- /dev/null +++ b/install/nextpvr-install.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2024 communtiy-scripts ORG +# Author: MickLesk (Canbiz) +# License: MIT +# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies (Patience)" +$STD apt-get install -y \ + mediainfo \ + libmediainfo-dev \ + libc6 \ + curl \ + sudo \ + libgdiplus \ + acl \ + dvb-tools \ + libdvbv5-0 \ + dtv-scan-tables \ + libc6-dev \ + ffmpeg \ + mc +msg_ok "Installed Dependencies" + +msg_info "Setup NextPVR (Patience)" +cd /opt +wget -q https://nextpvr.com/nextpvr-helper.deb +$STD dpkg -i nextpvr-helper.deb +msg_ok "Installed NextPVR" + +motd_ssh +customize + +msg_info "Cleaning up" +rm -rf /opt/nextpvr-helper.deb +$STD apt-get autoremove +$STD apt-get autoclean +msg_ok "Cleaned" diff --git a/json/nextpvr.json b/json/nextpvr.json new file mode 100644 index 00000000..9f57370c --- /dev/null +++ b/json/nextpvr.json @@ -0,0 +1,34 @@ +{ + "name": "NextPVR", + "slug": "nextpvr", + "categories": [ + 0 + ], + "date_created": "2024-11-20", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8866, + "documentation": "https://github.com/sub3/NextPVR/wiki", + "website": "https://nextpvr.com/", + "logo": null, + "description": "NextPVR is a personal video recorder application for Microsoft Windows, Linux, Mac and Docker. NextPVR makes it easy to watch or record live TV, and provides great features like series recordings, web scheduling, iPhone/iPad client application, Kodi/Emby integration etc.", + "install_methods": [ + { + "type": "default", + "script": "/ct/nextpvr.sh", + "resources": { + "cpu": 1, + "ram": 1024, + "hdd": 5, + "os": "Debian", + "version": 12 + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] +} \ No newline at end of file