mkcephfs needs to create $TDIR on the other nodes in a multi-node setup
before trying to scp files into that directory.
Also, do mkdir -p on the directory where the configuration is going to
go.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
check_host || continue
if [ -n "$ssh" ] && ( echo $pushed_to | grep -v -q " $host " ); then
+ conf_dir=`dirname "$conf"`
+ ssh $host mkdir -p "$conf_dir"
+ ssh $host mkdir -p "$TDIR"
scp -q $conf $host:$conf
scp -q $osdmap $host:$osdmap
scp -q $monmap $host:$monmap
fi
rm -f $TDIR/keyring.mds.$id
fi
-
+ if [ -n "$ssh" ]; then
+ ssh $host rm -rf $TDIR
+ fi
done
rm -f $monkeyring