Merge pull request #1205 from travisn/toolbox-mon-config

Generate toolbox config for mons with double digit names
This commit is contained in:
Travis Nielsen authored and GitHub committed 2017-11-07 11:16:00 -08:00
commit 0ceddcf87b
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ KEYRING_FILE="/etc/ceph/keyring"
# without specifying any arguments
write_endpoints() {
endpoints=$(cat ${MON_CONFIG})
mon_endpoints=$(echo ${endpoints} | sed 's/rook-ceph-mon[0-9]=//g')
mon_endpoints=$(echo ${endpoints} | sed 's/rook-ceph-mon[0-9]\+=//g')
DATE=$(date)
echo "$DATE writing mon endpoints to ${CEPH_CONFIG}: ${endpoints}"
cat <<EOF > ${CEPH_CONFIG}