Signed-off-by: Bill Erickson <berickxx@gmail.com>
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