Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2022-10-28 08:27:48 +01:00
committed by GitHub
parent 5a6b8e7d19
commit 89d354e0e9

View File

@@ -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"