Files
shell_sequencer/seqs/tvheadend.sh
2019-12-13 23:19:23 +01:00

53 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
toolName="Tvheadend"
step_1_info() { echo "Apt - setup $toolName repository"; }
step_1_alias() { ALIAS="install"; }
step_1() {
local sourceList="/etc/apt/sources.list.d/tvheadend.list"
local sourceEntry="deb https://apt.tvheadend.org/stable raspbian-stretch main"
exe apt update
saveReturn $?
exe apt install coreutils wget apt-transport-https ca-certificates
saveReturn $?
endReturn "Dependencies installation failed"
echo -n "Downloading tvheadend repository key ... "
exe wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -
endReturn -o $? "Download of repository key failed"
addConf -c "$sourceEntry" "$sourceList"
}
step_2_info() { echo "Install/Upate $toolName"; }
step_2() {
exe apt update
saveReturn $?
exe apt install tvheadend
saveReturn $?
endReturn "$toolName installation failed"
echo "More information on $toolName:"
echo "https://tvheadend.org/projects/tvheadend/wiki"
}
step_99_info() { echo "Apt - setup \"old\" Bintray repository"; }
step_99() {
local sourceList="/etc/apt/sources.list.d/tvheadend.list"
local sourceEntry="deb https://dl.bintray.com/mpmc/deb raspbianstretch release-4.2"
exe apt update && apt install dirmngr
exe apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
addConf -s "$sourceEntry" "$sourceList"A
saveReturn $?
exe apt update
saveReturn $?
endReturn
}
VERSION_SEQREV=8
. sequencer.sh