toolbox: generate config for mons with double digit names

This commit is contained in:
Travis Nielsen committed 2017-11-07 10:39:56 -08:00
1 parent 1fd8adc7da
commit 35014f5ce8
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}