mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-23 04:56:28 +01:00
Update 91-qbittorrent_configuration.sh
This commit is contained in:
@@ -129,14 +129,18 @@ fi
|
||||
# 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')
|
||||
|
||||
# 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
|
||||
### Variables
|
||||
bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option"
|
||||
|
||||
Reference in New Issue
Block a user