Skip to content

Commit fc13637

Browse files
authored
Change to latest tag for Full Text Search (#2563)
1 parent 7059ae3 commit fc13637

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

apps/fulltextsearch.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ else
5252
done
5353
# Removal Elastichsearch Docker image
5454
docker_prune_this "docker.elastic.co/elasticsearch/elasticsearch"
55-
if docker network ls | grep fulltextsearch_"$DOCKER_IMAGE_NAME"-network
55+
if docker network ls | grep "$FULLTEXTSEARCH_IMAGE_NAME"-network
5656
then
57-
docker network rm fulltextsearch_"$DOCKER_IMAGE_NAME"-network
57+
docker network rm "$FULLTEXTSEARCH_IMAGE_NAME"-network
5858
fi
5959
rm -rf "$FULLTEXTSEARCH_DIR"
6060
# Show successful uninstall if applicable
@@ -115,8 +115,8 @@ cat << YML_DOCKER_COMPOSE > "$FULLTEXTSEARCH_DIR/docker-compose.yaml"
115115
version: '3'
116116
services:
117117
elasticsearch:
118-
image: docker.elastic.co/elasticsearch/elasticsearch:8.9.2
119-
container_name: $DOCKER_IMAGE_NAME
118+
image: docker.elastic.co/elasticsearch/elasticsearch:latest
119+
container_name: $FULLTEXTSEARCH_IMAGE_NAME
120120
restart: always
121121
ports:
122122
- 127.0.0.1:9200:9200
@@ -134,12 +134,12 @@ services:
134134
soft: 65536
135135
hard: 65536
136136
networks:
137-
- $DOCKER_IMAGE_NAME-network
137+
- $FULLTEXTSEARCH_IMAGE_NAME-network
138138
139139
volumes:
140-
$DOCKER_IMAGE_NAME-data:
140+
$FULLTEXTSEARCH_IMAGE_NAME-data:
141141
networks:
142-
$DOCKER_IMAGE_NAME-network:
142+
$FULLTEXTSEARCH_IMAGE_NAME-network:
143143
YML_DOCKER_COMPOSE
144144

145145
# Start the docker image
@@ -154,7 +154,7 @@ done
154154

155155
# Check logs
156156
print_text_in_color "$ICyan" "Checking logs..."
157-
docker logs "$DOCKER_IMAGE_NAME"
157+
docker logs "$FULLTEXTSEARCH_IMAGE_NAME"
158158

159159
countdown "Waiting a bit more before testing..." "10"
160160

lib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ APACHE2=/etc/apache2/apache2.conf
174174
fulltextsearch_install() {
175175
NEXTCLOUD_INDEX=$(gen_passwd "$SHUF" '[:lower:]')
176176
ELASTIC_USER_PASSWORD=$(gen_passwd "$SHUF" '[:lower:]')
177+
FULLTEXTSEARCH_IMAGE_NAME=fulltextsearch_es01
178+
# Legacy, changed 2023-09-21
177179
DOCKER_IMAGE_NAME=es01
178180
FULLTEXTSEARCH_DIR="$SCRIPTS"/fulltextsearch
179181
# Legacy

nextcloud_update.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,13 @@ $DOCKER_RUN_OUTPUT"
661661
msg_box "Please consider reinstalling FullTextSearch since you seem to have the old (and not working) implemantation by issuing the uninstall script: sudo bash $SCRIPTS/menu.sh --> Additional Apps --> FullTextSearch"
662662
elif [ -d "$FULLTEXTSEARCH_DIR" ]
663663
then
664-
print_text_in_color "$ICyan" "Full Text Search is version based, to upgrade it, please change the version in $FULLTEXTSEARCH_DIR and run 'docker compose pull && docker compose up -d'. Latest tags are here: https://www.docker.elastic.co/r/elasticsearch and release notes here: https://www.elastic.co/guide/en/elasticsearch/reference/current/release-highlights.html"
664+
# Check if new name standard is set, and only update if it is (since it contains the latest tag)
665+
if grep -rq "$FULLTEXTSEARCH_IMAGE_NAME" "$FULLTEXTSEARCH_DIR/docker-compose.yaml"
666+
then
667+
docker-compose_update "$FULLTEXTSEARCH_IMAGE_NAME" 'Full Text Search' "$FULLTEXTSEARCH_DIR"
668+
else
669+
print_text_in_color "$ICyan" "Full Text Search is version based, to upgrade it, please change the version in $FULLTEXTSEARCH_DIR and run 'docker compose pull && docker compose up -d'. Latest tags are here: https://www.docker.elastic.co/r/elasticsearch and release notes here: https://www.elastic.co/guide/en/elasticsearch/reference/current/release-highlights.html"
670+
fi
665671
fi
666672
fi
667673
# Talk Recording

0 commit comments

Comments
 (0)