From 83d790a5afff0878bc56f57e2bdf0bfb0c0a598f Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 29 Sep 2023 14:51:46 +0200 Subject: [PATCH] remove live service before dropping index Signed-off-by: Daniel Hansson --- apps/fulltextsearch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/fulltextsearch.sh b/apps/fulltextsearch.sh index 9cc9e205..2b7ec3ea 100644 --- a/apps/fulltextsearch.sh +++ b/apps/fulltextsearch.sh @@ -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 @@ -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