From c3403eedb5fa70aaffd6f0f235d7541ba598ba38 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 10 Mar 2015 12:16:37 -0400 Subject: [PATCH] JBAS-415 warn when leaving brick detached Signed-off-by: Bill Erickson --- KCLS/misc-scripts/eg-updater.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/KCLS/misc-scripts/eg-updater.sh b/KCLS/misc-scripts/eg-updater.sh index 29cca58c74..3ff13ba1ad 100755 --- a/KCLS/misc-scripts/eg-updater.sh +++ b/KCLS/misc-scripts/eg-updater.sh @@ -478,10 +478,14 @@ else fi; fi -if [ -n "$REATTACH" -a -z "$SKIP_DETACH" ]; then - announce "Reattaching brick after $START_SLEEP seconds" - sleep $START_SLEEP; - $OSRF mv $PING_FILE- $PING_FILE +if [ -z "$SKIP_DETACH" ]; then + if [ -n "$REATTACH" ]; then + announce "Reattaching brick after $START_SLEEP seconds" + sleep $START_SLEEP; + $OSRF mv $PING_FILE- $PING_FILE + else + announce "Brick is still detached! Use -a to automatically re-attach" + fi fi; SUCCESS=1 -- 2.11.0