With set -e this seems to fail (at least on some machines) if, say, there
is no MDS in the conf file. This fixes it.
Tested-by: Mark Nelson <mark.nelson@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
orig="$*"
# extract list of monitors, mdss, osds defined in startup.conf
- allconf=`$CCONF -c $conf -l mon | egrep -v '^mon$' ; \
- $CCONF -c $conf -l mds | egrep -v '^mds$' ; \
- $CCONF -c $conf -l osd | egrep -v '^osd$'`
+ allconf=`$CCONF -c $conf -l mon | egrep -v '^mon$' || true ; \
+ $CCONF -c $conf -l mds | egrep -v '^mds$' || true ; \
+ $CCONF -c $conf -l osd | egrep -v '^osd$' || true`
if [ -z "$orig" ]; then
what="$allconf $local"