Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ae8109335 | |||
| 92209c8638 | |||
| 3d1a7a8592 | |||
| 011abf2aa5 | |||
| 2fdd760070 | |||
| a638507b2b | |||
| ad2e249a87 | |||
| 712841f292 |
@@ -72,7 +72,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: 🏗 Set up build cache
|
- name: 🏗 Set up build cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v3.2.5
|
uses: actions/cache@v3.2.6
|
||||||
with:
|
with:
|
||||||
path: /tmp/.docker-cache
|
path: /tmp/.docker-cache
|
||||||
key: docker-${{ matrix.architecture }}-${{ github.sha }}
|
key: docker-${{ matrix.architecture }}-${{ github.sha }}
|
||||||
|
|||||||
@@ -86,13 +86,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
[contributors]: https://github.com/GauthamVarmaK/addon-tvheadend/graphs/contributors
|
[contributors]: https://github.com/GauthamVarmaK/addon-tvheadend/graphs/contributors
|
||||||
[docs]: https://github.com/GauthamVarmaK/addon-tvheadend/blob/main/tvheadend/DOCS.md
|
[docs]: https://git.i3omb.com/Gronod/addon-tvheadend/blob/main/tvheadend/DOCS.md
|
||||||
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
|
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
|
||||||
[forum]: https://community.home-assistant.io/
|
[forum]: https://community.home-assistant.io/
|
||||||
[gautham]: https://github.com/GauthamVarmaK
|
[gautham]: https://github.com/GauthamVarmaK
|
||||||
[frenck]: https://github.com/frenck
|
[frenck]: https://github.com/frenck
|
||||||
[github-actions-shield]: https://github.com/GauthamVarmaK/addon-tvheadend/workflows/CI/badge.svg
|
[github-actions-shield]: https://github.com/GauthamVarmaK/addon-tvheadend/workflows/CI/badge.svg
|
||||||
[github-actions]: https://github.com/GauthamVarmaK/addon-tvheadend/actions
|
[github-actions]: https://git.i3omb.com/Gronod/addon-tvheadend/actions
|
||||||
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
|
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
|
||||||
[issue]: https://github.com/GauthamVarmaK/addon-tvheadend/issues
|
[issue]: https://github.com/GauthamVarmaK/addon-tvheadend/issues
|
||||||
[license-shield]: https://img.shields.io/github/license/GauthamVarmaK/addon-tvheadend.svg
|
[license-shield]: https://img.shields.io/github/license/GauthamVarmaK/addon-tvheadend.svg
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ version: dev
|
|||||||
stage: experimental
|
stage: experimental
|
||||||
slug: tvheadend
|
slug: tvheadend
|
||||||
description: TV streaming server and recorder.
|
description: TV streaming server and recorder.
|
||||||
url: "https://github.com/GauthamVarmaK/addon-tvheadend"
|
url: "https://git.i3omb.com/Gronod/addon-tvheadend"
|
||||||
init: false
|
init: false
|
||||||
arch:
|
arch:
|
||||||
- aarch64
|
- aarch64
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
setuptools==67.3.2
|
setuptools==67.4.0
|
||||||
streamlink==5.2.1
|
streamlink==5.3.1
|
||||||
|
|||||||
+27
@@ -0,0 +1,27 @@
|
|||||||
|
#!/command/with-contenv bashio
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# ==============================================================================
|
||||||
|
# Home Assistant Community Add-on: TVHeadend
|
||||||
|
# Take down the S6 supervision tree when cron fails
|
||||||
|
# ==============================================================================
|
||||||
|
declare exit_code
|
||||||
|
readonly exit_code_container=$(</run/s6-linux-init-container-results/exitcode)
|
||||||
|
readonly exit_code_service="${1}"
|
||||||
|
readonly exit_code_signal="${2}"
|
||||||
|
readonly service="cron"
|
||||||
|
|
||||||
|
bashio::log.info \
|
||||||
|
"Service ${service} exited with code ${exit_code_service}" \
|
||||||
|
"(by signal ${exit_code_signal})"
|
||||||
|
|
||||||
|
if [[ "${exit_code_service}" -eq 256 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo $((128 + $exit_code_signal)) > /run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
[[ "${exit_code_signal}" -eq 15 ]] && exec /run/s6/basedir/bin/halt
|
||||||
|
elif [[ "${exit_code_service}" -ne 0 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo "${exit_code_service}" > /run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
exec /run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
Regular → Executable
+1
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
# shellcheck shell=bash
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: TVHeadend
|
# Home Assistant Community Add-on: TVHeadend
|
||||||
# Runs the cron daemon
|
# Runs the cron daemon
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
Regular → Executable
+1
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
# shellcheck shell=bash
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: TVHeadend
|
# Home Assistant Community Add-on: TVHeadend
|
||||||
# Executes user customizations on startup
|
# Executes user customizations on startup
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/init-customizations/run
|
||||||
Regular → Executable
+1
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
# shellcheck shell=bash
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: TVHeadend
|
# Home Assistant Community Add-on: TVHeadend
|
||||||
# Executes user customizations on startup
|
# Executes user customizations on startup
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/init-tvheadend/run
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
#!/command/with-contenv bashio
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# ==============================================================================
|
||||||
|
# Home Assistant Community Add-on: TVHeadend
|
||||||
|
# Take down the S6 supervision tree when tvheadend fails
|
||||||
|
# ==============================================================================
|
||||||
|
declare exit_code
|
||||||
|
readonly exit_code_container=$(</run/s6-linux-init-container-results/exitcode)
|
||||||
|
readonly exit_code_service="${1}"
|
||||||
|
readonly exit_code_signal="${2}"
|
||||||
|
readonly service="tvheadend"
|
||||||
|
|
||||||
|
bashio::log.info \
|
||||||
|
"Service ${service} exited with code ${exit_code_service}" \
|
||||||
|
"(by signal ${exit_code_signal})"
|
||||||
|
|
||||||
|
if [[ "${exit_code_service}" -eq 256 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo $((128 + $exit_code_signal)) > /run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
[[ "${exit_code_signal}" -eq 15 ]] && exec /run/s6/basedir/bin/halt
|
||||||
|
elif [[ "${exit_code_service}" -ne 0 ]]; then
|
||||||
|
if [[ "${exit_code_container}" -eq 0 ]]; then
|
||||||
|
echo "${exit_code_service}" > /run/s6-linux-init-container-results/exitcode
|
||||||
|
fi
|
||||||
|
exec /run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
Regular → Executable
+1
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
# shellcheck shell=bash
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: TVHeadend
|
# Home Assistant Community Add-on: TVHeadend
|
||||||
# Starts TVHeadend
|
# Starts TVHeadend
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
longrun
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/execlineb -S0
|
|
||||||
# ==============================================================================
|
|
||||||
# Home Assistant Community Add-on: TVHeadend
|
|
||||||
# Take down the S6 supervision tree when crond fails
|
|
||||||
# ==============================================================================
|
|
||||||
if -n { s6-test $# -ne 0 }
|
|
||||||
if -n { s6-test ${1} -eq 256 }
|
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/execlineb -S0
|
|
||||||
# ==============================================================================
|
|
||||||
# Home Assistant Community Add-on: TVHeadend
|
|
||||||
# Take down the S6 supervision tree when TVHeadend fails
|
|
||||||
# ==============================================================================
|
|
||||||
if -n { s6-test $# -ne 0 }
|
|
||||||
if -n { s6-test ${1} -eq 256 }
|
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
|
||||||
Regular → Executable
Reference in New Issue
Block a user