Skip to content

Commit

Permalink
remove live service before dropping index
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
  • Loading branch information
enoch85 committed Sep 29, 2023
1 parent 7ddca4a commit 83d790a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/fulltextsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ then
else
# Ask for removal or reinstallation
reinstall_remove_menu "$SCRIPT_NAME"
# Remove live service
systemctl stop "$FULLTEXTSEARCH_SERVICE"
systemctl disable "$FULLTEXTSEARCH_SERVICE"
rm -f "$FULLTEXTSEARCH_SERVICE"
# Reset Full Text Search to be able to index again, and also remove the app to be able to install it again
nextcloud_occ_no_check fulltextsearch:stop
install_if_not expect
Expand Down Expand Up @@ -62,10 +66,6 @@ else
nextcloud_occ app:remove "$app"
fi
done
# Remove live service
systemctl stop "$FULLTEXTSEARCH_SERVICE"
systemctl disable "$FULLTEXTSEARCH_SERVICE"
rm -f "$FULLTEXTSEARCH_SERVICE"
# Removal Elastichsearch Docker image
docker_prune_this "docker.elastic.co/elasticsearch/elasticsearch"
if docker network ls | grep "$FULLTEXTSEARCH_IMAGE_NAME"-network
Expand Down

0 comments on commit 83d790a

Please sign in to comment.