mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-17 14:21:49 +02:00
Update 90-customUI.sh
This commit is contained in:
@@ -47,9 +47,9 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
"transmissionic")
|
"transmissionic")
|
||||||
TRANSMISSIONIC_VERSION=$(curl -s -L "https://api.github.com/repos/6c65726f79/Transmissionic/releases/latest" | jq -r .tag_name)
|
TRANSMISSIONIC_VERSION=$(curl -s -L "https://api.github.com/repos/6c65726f79/Transmissionic/releases/latest" | jq -r .tag_name)
|
||||||
echo "**** grab transmissionic ****" && \
|
echo "**** grab transmissionic ****" && \
|
||||||
if [ -z ${TRANSMISSIONIC_VERSION+x} ]; then \
|
if [ -z "${TRANSMISSIONIC_VERSION+x}" ]; then \
|
||||||
TRANSMISSIONIC_VERSION=$(curl -s "https://api.github.com/repos/6c65726f79/Transmissionic/releases/latest" \
|
TRANSMISSIONIC_VERSION="$(curl -s "https://api.github.com/repos/6c65726f79/Transmissionic/releases/latest" \
|
||||||
| jq -rc ".tag_name"); \
|
| jq -rc ".tag_name")"; \
|
||||||
fi && \
|
fi && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/transmissionic.zip -L \
|
/tmp/transmissionic.zip -L \
|
||||||
@@ -67,7 +67,7 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Define variable
|
# Define variable
|
||||||
$CUSTOMUI="/${CUSTOMUI}"
|
CUSTOMUI="/${CUSTOMUI}"
|
||||||
chown -R abc:abc "$CUSTOMUI"
|
chown -R abc:abc "$CUSTOMUI"
|
||||||
if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export TRANSMISSION_WEB_HOME=$CUSTOMUI" /etc/services.d/*/*run* 2>/dev/null; fi
|
if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export TRANSMISSION_WEB_HOME=$CUSTOMUI" /etc/services.d/*/*run* 2>/dev/null; fi
|
||||||
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$CUSTOMUI" > /var/run/s6/container_environment/TRANSMISSION_WEB_HOME; fi
|
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$CUSTOMUI" > /var/run/s6/container_environment/TRANSMISSION_WEB_HOME; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user