mirror of
https://github.com/ceph/ceph
synced 2024-12-18 09:25:49 +00:00
init-ceph: clean up temp ceph.conf filename on exit
Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
parent
051734522f
commit
6a7ad2eac1
@ -219,6 +219,7 @@ for name in $what; do
|
||||
unique=`dd if=/dev/urandom bs=16 count=1 2>/dev/null | md5sum | awk '{print $1}'`
|
||||
if echo $pushed_to | grep -v -q " $host "; then
|
||||
scp -q $conf $host:/tmp/ceph.conf.$unique
|
||||
trap "ssh $host rm /tmp/ceph.conf.$unique" EXIT
|
||||
pushed_to="$pushed_to $host "
|
||||
fi
|
||||
cur_conf="/tmp/ceph.conf.$unique"
|
||||
|
Loading…
Reference in New Issue
Block a user