Skip to content

Commit 6d36b61

Browse files
authored
fix reinstall of fts (#2324)
Signed-off-by: szaimen <[email protected]>
1 parent 623b753 commit 6d36b61

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

apps/fulltextsearch.sh

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ else
5151
docker_prune_this "$nc_fts"
5252
docker_prune_this "$opens_fts"
5353
docker_prune_volume "esdata"
54+
docker_prune_volume "opensearch_fts_os-data"
5455
docker_prune_volume "fts_os-data"
5556
# Remove configuration files
5657
rm -rf "$RORDIR"
@@ -211,6 +212,7 @@ services:
211212
212213
volumes:
213214
fts_os-data:
215+
name: fts_os-data
214216
215217
networks:
216218
fts_os-net:

apps/opensearch_certs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Source:
55
# https://opensearch.org/docs/latest/security-plugin/configuration/generate-certificates/#sample-script
66

7+
rm -rf tls_store
78
mkdir tls_store
89
TLS_DN="/C=CA/ST=NEXTCLOUD/L=VM/O=OPENSEARCH/OU=FTS"
910

lib.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1679,16 +1679,16 @@ then
16791679
msg_box "Removing old Docker image: $1
16801680
You will be given the option to abort when you hit OK."
16811681
any_key "Press any key to continue. Press CTRL+C to abort"
1682-
docker stop "$(docker container ls | grep "$1" | awk '{print $1}' | tail -1)"
1683-
docker rm "$(docker container ls | grep "$1" | awk '{print $1}' | tail -1)" --volumes
1682+
docker stop "$(docker container ls -a | grep "$1" | awk '{print $1}' | tail -1)"
1683+
docker rm "$(docker container ls -a | grep "$1" | awk '{print $1}' | tail -1)" --volumes
16841684
docker image prune -a -f
16851685
fi
16861686
}
16871687

16881688
# Remove selected Docker volume
16891689
# docker_prune_volume ''
16901690
docker_prune_volume() {
1691-
if docker volume ls | grep -q "^$1$"
1691+
if docker volume ls | grep -q "$1$"
16921692
then
16931693
msg_box "Removing old Docker volume: $1
16941694
You will be given the option to abort when you hit OK."

0 commit comments

Comments
 (0)