150
152
$BINDIR/cauthtool --import-keyring $adminkeyring $monkeyring
165
155
type=`echo $name | cut -c 1-3` # e.g. 'mon', if $name is 'mon1'
166
156
id=`echo $name | cut -c 4- | sed 's/\\.//'`
168
158
if [ "$type" = "osd" ]; then
170
163
$BINDIR/cauthtool --import-keyring /tmp/keyring.osd.$id $monkeyring
172
165
if [ "$type" = "mds" ]; then
174
171
$BINDIR/cauthtool --import-keyring /tmp/keyring.mds.$id $monkeyring