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 #