New seqs
This commit is contained in:
59
seqs/tvheadend.sh
Normal file
59
seqs/tvheadend.sh
Normal file
@@ -0,0 +1,59 @@
|
||||
#!/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"
|
||||
|
||||
apt update
|
||||
saveReturn $?
|
||||
apt install coreutils wget apt-transport-https ca-certificates
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
wget -q0- https://doozer.io/keys/tvheadend/tvheadend/pgp | apt-key add -
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
if [ -f "$sourceList" ] ; then
|
||||
echo "[WARN] Renaming existing source list to: ${sourceList}.bck"
|
||||
mv "$sourceList" "$sourceList".bck
|
||||
fi
|
||||
|
||||
echo "$sourceEntry" > "$sourceList"
|
||||
}
|
||||
|
||||
step_2_info() { echo "Install/Upate $toolName"; }
|
||||
step_2() {
|
||||
apt update
|
||||
saveReturn $?
|
||||
apt install tvheadend
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
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"
|
||||
|
||||
apt update && apt install dirmngr
|
||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
|
||||
if [ -f "$sourceList" ] ; then
|
||||
echo "Skipping creating of $sourceList; Already exists"
|
||||
return
|
||||
fi
|
||||
echo "$sourceEntry" > "$sourceList"
|
||||
apt update
|
||||
saveReturn $?
|
||||
endReturn
|
||||
}
|
||||
|
||||
VERSION_SEQREV=2
|
||||
. sequencer.sh
|
Reference in New Issue
Block a user