mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 18:41:27 +02:00
Update 91-qbittorrent_configuration.sh
This commit is contained in:
@@ -129,14 +129,18 @@ fi
|
|||||||
# Alternate UI #
|
# Alternate UI #
|
||||||
################
|
################
|
||||||
|
|
||||||
# Clean data
|
|
||||||
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
|
|
||||||
sed -i '/RootFolder/d' qBittorrent.conf
|
|
||||||
rm -f -r /webui
|
|
||||||
mkdir -p /webui
|
|
||||||
chown abc:abc /webui
|
|
||||||
|
|
||||||
CUSTOMUI=$(bashio::config 'customUI')
|
CUSTOMUI=$(bashio::config 'customUI')
|
||||||
|
|
||||||
|
# Clean data if not custom
|
||||||
|
if [ ! "$CUSTOMUI" = custom ]; then
|
||||||
|
sed -i '/AlternativeUIEnabled/d' qBittorrent.conf
|
||||||
|
sed -i '/RootFolder/d' qBittorrent.conf
|
||||||
|
rm -f -r /webui
|
||||||
|
mkdir -p /webui
|
||||||
|
chown abc:abc /webui
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install webui
|
||||||
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then
|
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then
|
||||||
### Variables
|
### Variables
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user