vstart: bail out if "-k" and old config is not readable

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-04-23 00:47:26 +08:00
parent dfcbcb5b11
commit bd02331a46

View File

@ -231,6 +231,10 @@ case $1 in
cephx=0
;;
-k )
if [ ! -r $conf_fn ]; then
echo "cannot use old configuration: $conf_fn not readable." >&2
exit
fi
overwrite_conf=0
;;
--memstore )