Check for version tag before install

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
Daniel Hansson 2023-09-22 13:36:13 +02:00 committed by GitHub
parent ecf78fc036
commit d68324ec44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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