#!/bin/bash
sed 's/broker/broker\n \
<plugins> \
<jaasAuthenticationPlugin configuration=\"activemq\" \/> \
<authorizationPlugin> \
<map> \
<authorizationMap> \
<authorizationEntries> \
<authorizationEntry topic=> read="admins" write="admins" admin="admins" \/> \
<authorizationEntry queue=> read="admins" write="admins" admin="admins" \/> \
<\/authorizationEntries> \
<\/authorizationMap> \
<\/map> \
<\/authorizationPlugin> \
<\/plugins>/'
IyEvYmluL2Jhc2gKc2VkICdzL2Jyb2tlci9icm9rZXJcbiBcCiAgICA8cGx1Z2lucz4gXAogICAgICAgIDxqYWFzQXV0aGVudGljYXRpb25QbHVnaW4gY29uZmlndXJhdGlvbj1cImFjdGl2ZW1xXCIgXC8+IFwKICAgICAgICA8YXV0aG9yaXphdGlvblBsdWdpbj4gXAogICAgICAgICAgICA8bWFwPiBcCiAgICAgICAgICAgICAgICA8YXV0aG9yaXphdGlvbk1hcD4gXAogICAgICAgICAgICAgICAgICAgIDxhdXRob3JpemF0aW9uRW50cmllcz4gXAogICAgICAgICAgICAgICAgICAgICAgICA8YXV0aG9yaXphdGlvbkVudHJ5IHRvcGljPT4gcmVhZD0iYWRtaW5zIiB3cml0ZT0iYWRtaW5zIiBhZG1pbj0iYWRtaW5zIiBcLz4gXAogICAgICAgICAgICAgICAgICAgICAgICA8YXV0aG9yaXphdGlvbkVudHJ5IHF1ZXVlPT4gcmVhZD0iYWRtaW5zIiB3cml0ZT0iYWRtaW5zIiBhZG1pbj0iYWRtaW5zIiBcLz4gXAogICAgICAgICAgICAgICAgICAgIDxcL2F1dGhvcml6YXRpb25FbnRyaWVzPiBcCiAgICAgICAgICAgICAgICA8XC9hdXRob3JpemF0aW9uTWFwPiBcCiAgICAgICAgICAgIDxcL21hcD4gXAogICAgICAgIDxcL2F1dGhvcml6YXRpb25QbHVnaW4+IFwKICAgIDxcL3BsdWdpbnM+Lyc=