Skip to content

Commit 82f8b91

Browse files
authored
Remove annoying message on every update (#2539)
even though FTS isn't installed. Signed-off-by: Daniel Hansson <[email protected]>
1 parent bf25e29 commit 82f8b91

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

nextcloud_update.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,17 @@ If you need help, please get support here: https://shop.hanssonit.se/product/pre
647647
# Full Text Search
648648
if [ "${CURRENTVERSION%%.*}" -ge "25" ]
649649
then
650-
msg_box "Sorry, it's not possible to install or upgrade FTS anymore since Nextcloud decided to remove support for OpenSearchh
650+
opensearch_install
651+
if does_this_docker_exist "$nc_fts" && does_this_docker_exist "$opens_fts"
652+
then
653+
msg_box "Sorry, it's not possible to install or upgrade FTS anymore since Nextcloud decided to remove support for OpenSearchh
651654
Read more in this issue: https://github.com/nextcloud/fulltextsearch_elasticsearch/issues/271
652655
653656
Please consider removing it by issuing the uninstall script: sudo bash $SCRIPTS/menu.sh --> Additional Apps --> FullTextSearch"
654-
else
655-
docker_update_specific 'fts_esror' 'Full Text Search'
656-
docker-compose_update 'fts_os-node' 'Full Text Search' "$OPNSDIR"
657+
else
658+
docker_update_specific 'fts_esror' 'Full Text Search'
659+
docker-compose_update 'fts_os-node' 'Full Text Search' "$OPNSDIR"
660+
fi
657661
fi
658662
# Plex
659663
docker_update_specific 'plex' "Plex Media Server"
@@ -670,7 +674,7 @@ then
670674
for apacheconf in "${LOOLWSDCONF[@]}"
671675
do
672676
sed -i "s|/loleaflet|/browser|g" "${apacheconf}"
673-
sed -i "s|loleaflet is the|broswer is the|g" "${apacheconf}"
677+
sed -i "s|loleaflet is the|browser is the|g" "${apacheconf}"
674678
sed -i "s|loolwsd|coolwsd|g" "${apacheconf}"
675679
sed -i "s|/lool|/cool|g" "${apacheconf}"
676680
done

0 commit comments

Comments
 (0)