Update 91-qbittorrent_configuration.sh

This commit is contained in:
Alexandre
2023-02-08 11:43:07 +01:00
committed by GitHub
parent 56eb0df615
commit e2a9fdebba

View File

@@ -181,8 +181,10 @@ if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$C
sed -i "$LINE i\WebUI\\\AlternativeUIEnabled=true" "$CONFIG_LOCATION"/qBittorrent.conf
sed -i "$LINE i\WebUI\\\RootFolder=$CUSTOMUIDIR" "$CONFIG_LOCATION"/qBittorrent.conf
# Set nginx
#sed -i "s=/vuetorrent/public/=$CUSTOMUIDIR/public/=g" /etc/nginx/servers/ingress.conf
#sed -i "s=vue.torrent=$CUSTOMUI.torrent=g" /etc/nginx/servers/ingress.conf
sed -i "s=/vuetorrent/public/=$CUSTOMUIDIR/public/=g" /etc/nginx/servers/ingress.conf
sed -i "s=vue.torrent=$CUSTOMUI.torrent=g" /etc/nginx/servers/ingress.conf
#[[ "$(cat /data/customui)" != "$CUSTOMUI" ]] && bashio::log.warning "Your customui was changed since last time. Be sure to clear your browser cache to see the difference"
#echo "$CUSTOMUI" > /data/customui
fi