mirror of https://github.com/apache/activemq.git
Add ACTIVEMQ_WEB_USER to groups.properties file in docker
Couldn't get access in web console when use ACTIVEMQ_WEB_USER environment variable for docker. Console threw "HTTP ERROR 403 !role"
This commit is contained in:
parent
5b2cc03030
commit
0346272a60
|
@ -73,6 +73,7 @@ fi
|
|||
if [ -n "${ACTIVEMQ_WEB_USER}" ]; then
|
||||
echo "Enabling ActiveMQ WebConsole security"
|
||||
sed -i s/admin=/${ACTIVEMQ_WEB_USER}=/g ${ACTIVEMQ_HOME}/conf/users.properties
|
||||
sed -i s/=admin/=${ACTIVEMQ_WEB_USER}/g ${ACTIVEMQ_HOME}/conf/groups.properties
|
||||
if [ -n "${ACTIVEMQ_WEB_PASSWORD}" ]; then
|
||||
sed -i s/=admin/=${ACTIVEMQ_WEB_PASSWORD}/g ${ACTIVEMQ_HOME}/conf/users.properties
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue