From d68324ec44cfed6c168af9b2e09baa280a9c12e5 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 22 Sep 2023 13:36:13 +0200 Subject: [PATCH] Check for version tag before install Signed-off-by: Daniel Hansson --- apps/fulltextsearch.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/fulltextsearch.sh b/apps/fulltextsearch.sh index fa66a8e9..d626c415 100644 --- a/apps/fulltextsearch.sh +++ b/apps/fulltextsearch.sh @@ -24,7 +24,7 @@ debug_mode root_check # Nextcloud 21 is required. -lowest_compatible_nc 21 +lowest_compatible_nc 26 # Check if Full Text Search is already installed if ! does_this_docker_exist docker.elastic.co/elasticsearch/elasticsearch && ! is_app_installed fulltextsearch @@ -61,6 +61,13 @@ else removal_popup "$SCRIPT_NAME" fi +# Check if version tag is available +if [ ! -n "$FULLTEXTSEARCH_IMAGE_NAME_LATEST_TAG" ] +then + msg_box "The Elasticsearch version tag is not available, please report this to $ISSUES" + exit 1 +fi + # Test RAM size (4GB min) + CPUs (min 2) ram_check 4 FullTextSearch cpu_check 2 FullTextSearch