From e517a705d19bd408c32b3a556dc18f62340e767b Mon Sep 17 00:00:00 2001 From: Alexandra Catalina Date: Tue, 28 Jun 2022 07:55:22 -0700 Subject: [PATCH] solr_create_cores: don't swallow stdout in debug mode (#52) stdout is already sent to `/dev/null` by `debug_execute` unless `BITNAMI_DEBUG` is true, so this is unnecessary in the default case but also means that it will be swallowed in debug mode, which is undesirable. Signed-off-by: Alexandra Dunn --- bitnami/solr/8/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh | 2 +- bitnami/solr/9/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/solr/8/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh b/bitnami/solr/8/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh index f37ff8afd036..a01c7a2784db 100644 --- a/bitnami/solr/8/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh +++ b/bitnami/solr/8/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh @@ -195,7 +195,7 @@ solr_create_cores() { info "Creating solr core: ${core}" - if ! debug_execute "$exec" "${command_args[@]}" >/dev/null; then + if ! debug_execute "$exec" "${command_args[@]}"; then error "There was an error when creating the core" exit 1 else diff --git a/bitnami/solr/9/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh b/bitnami/solr/9/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh index f37ff8afd036..a01c7a2784db 100644 --- a/bitnami/solr/9/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh +++ b/bitnami/solr/9/debian-11/rootfs/opt/bitnami/scripts/libsolr.sh @@ -195,7 +195,7 @@ solr_create_cores() { info "Creating solr core: ${core}" - if ! debug_execute "$exec" "${command_args[@]}" >/dev/null; then + if ! debug_execute "$exec" "${command_args[@]}"; then error "There was an error when creating the core" exit 1 else