From b34007d8880d819de9d65a49701cb18372380165 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 5 Nov 2021 21:33:27 +0100 Subject: [PATCH] Update 51-elasticsearch --- nextcloud/root/etc/cont-init.d/51-elasticsearch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nextcloud/root/etc/cont-init.d/51-elasticsearch b/nextcloud/root/etc/cont-init.d/51-elasticsearch index 326c7a7c8..5f765a400 100644 --- a/nextcloud/root/etc/cont-init.d/51-elasticsearch +++ b/nextcloud/root/etc/cont-init.d/51-elasticsearch @@ -1,10 +1,12 @@ #!/usr/bin/with-contenv bashio +cd /data/config/www/nextcloud + # Make sure there is an Nextcloud installation -#if ! [ "$(occ -V)" ]; then -# bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user." -# exit 0 -#fi +if ! [ "$(occ -V)" ]; then + bashio::log.warning "It seems there is no Nextcloud server installed. Please restart the addon after initialization of the user." + exit 0 +fi ############ # BASED ON #