This commit is contained in:
Alexandre
2022-02-18 16:49:00 +01:00
parent dddf6ec5b6
commit 0d1f2f0489
3 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/with-contenv bashio #!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# create folders # create folders
mkdir -p \ mkdir -p \

View File

@@ -21,7 +21,8 @@ fi
################################################################################# #################################################################################
if bashio::config.true 'Full_Text_Search'; then if bashio::config.true 'Full_Text_Search'; then
if [ $LAUNCHER fulltextsearch:index &>/dev/null ]; then # shellcheck disable=SC1073,SC1072,SC1009
if [ eval $LAUNCHER fulltextsearch:index &>/dev/null ]; then
echo "Full Text Search is already working" echo "Full Text Search is already working"
break 2 break 2
fi fi

View File

@@ -13,7 +13,7 @@ if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
fi fi
# Install OCR if requested # Install OCR if requested
if [ $(bashio::config 'OCR') = "true" ]; then if [ "$(bashio::config 'OCR')" = "true" ]; then
# Install package # Install package
if bashio::config.true 'OCR'; then if bashio::config.true 'OCR'; then
@@ -38,7 +38,7 @@ if [ $(bashio::config 'OCR') = "true" ]; then
wget https://github.com/tesseract-ocr/tessdata/raw/main/"$LANG".traineddata &>/dev/null wget https://github.com/tesseract-ocr/tessdata/raw/main/"$LANG".traineddata &>/dev/null
done done
fi fi
elif [ $(bashio::config 'OCR') = "false" ]; then elif [ "$(bashio::config 'OCR')" = "false" ]; then
bashio::log.info 'Removing OCR' bashio::log.info 'Removing OCR'
# Delete package # Delete package
apk del tesseract-ocr.* &>/dev/null || true apk del tesseract-ocr.* &>/dev/null || true