mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-26 01:06:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -6,11 +6,12 @@
|
|||||||
|
|
||||||
if bashio::config.true "TRANSMISSION_V3_UPDATE"; then
|
if bashio::config.true "TRANSMISSION_V3_UPDATE"; then
|
||||||
|
|
||||||
|
(
|
||||||
bashio::log.info "Updating transmission to v3"
|
bashio::log.info "Updating transmission to v3"
|
||||||
bashio::log.warning "If your previous version was v2, remove and add torrents again"
|
bashio::log.warning "If your previous version was v2, remove and add torrents again"
|
||||||
|
|
||||||
# see https://github.com/haugene/docker-transmission-openvpn/discussions/1937
|
# see https://github.com/haugene/docker-transmission-openvpn/discussions/1937
|
||||||
wget -O 976b5901365c5ca1.key "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xa37da909ae70535824d82620976b5901365c5ca1" >/dev/null
|
wget -O 976b5901365c5ca1.key "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xa37da909ae70535824d82620976b5901365c5ca1"
|
||||||
|
|
||||||
cat > /etc/apt/sources.list.d/transmission.list <<EOF
|
cat > /etc/apt/sources.list.d/transmission.list <<EOF
|
||||||
# Transmission PPA https://launchpad.net/~transmissionbt/+archive/ubuntu/ppa
|
# Transmission PPA https://launchpad.net/~transmissionbt/+archive/ubuntu/ppa
|
||||||
@@ -18,8 +19,9 @@ deb [signed-by=/976b5901365c5ca1.key] http://ppa.launchpad.net/transmissionbt/pp
|
|||||||
#deb-src http://ppa.launchpad.net/transmissionbt/ppa/ubuntu focal main
|
#deb-src http://ppa.launchpad.net/transmissionbt/ppa/ubuntu focal main
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
apt-get update -o Dir::Etc::sourcelist="sources.list.d/transmission.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" >/dev/null
|
apt-get update -o Dir::Etc::sourcelist="sources.list.d/transmission.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
|
||||||
apt-get install -y transmission-daemon transmission-cli >/dev/null
|
apt-get install -y transmission-daemon transmission-cli
|
||||||
|
) >/dev/null
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user