mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 23:55:56 +02:00
Update 90-customUI.sh
This commit is contained in:
@@ -13,8 +13,8 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option"
|
bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option"
|
||||||
|
|
||||||
# Clean folders
|
# Clean folders
|
||||||
if [ -d /"$CUSTOMUI" ]; then rm -r /"$CUSTOMUI"; fi
|
if [ -d /"$CUSTOMUI" ]; then rm -r /"${CUSTOMUI:?}"; fi
|
||||||
if [ -f /"$CUSTOMUI" ]; then rm -r /"$CUSTOMUI"; fi
|
if [ -f /"$CUSTOMUI" ]; then rm -r /"${CUSTOMUI:?}; fi
|
||||||
|
|
||||||
### Download WebUI
|
### Download WebUI
|
||||||
case $CUSTOMUI in
|
case $CUSTOMUI in
|
||||||
@@ -61,7 +61,7 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Define variable
|
# Define variable
|
||||||
if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export $line" /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
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user