mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 13:54:05 +02:00
Change web control
https://github.com/alexbelgium/hassio-addons/issues/1668
This commit is contained in:
@@ -25,13 +25,9 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"transmission-web-control")
|
"transmission-web-control")
|
||||||
curl -f -s -S -J -L -o /release.zip "$(curl -f -s -L https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | grep -o "http.*dist.zip" | head -1)" >/dev/null
|
|
||||||
### Install WebUI
|
### Install WebUI
|
||||||
mkdir -p /transmission-web-control
|
mkdir -p /transmission-web-control
|
||||||
unzip -q /release.zip -d /transmission-web-control
|
curl -sL $(curl -s https://api.github.com/repos/ronggang/transmission-web-control/releases/latest | jq --raw-output '.tarball_url') | tar -C /transmission-web-control/ --strip-components=2 -xz \
|
||||||
mv /transmission-web-control/dist/* /transmission-web-control
|
|
||||||
rm -r /transmission-web-control/dist
|
|
||||||
rm /release.zip
|
|
||||||
# Enables the original UI button in transmission-web-control
|
# Enables the original UI button in transmission-web-control
|
||||||
ln -s /usr/share/transmission/public_html/* /transmission-web-control/ 2>/dev/null || true
|
ln -s /usr/share/transmission/public_html/* /transmission-web-control/ 2>/dev/null || true
|
||||||
ln -s /usr/share/transmission/public_html/index.html /transmission-web-control/index.original.html
|
ln -s /usr/share/transmission/public_html/index.html /transmission-web-control/index.original.html
|
||||||
|
|||||||
Reference in New Issue
Block a user