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:
Bizman345 2024-08-11 01:39:00 +03:00 committed by GitHub
parent 5b2cc03030
commit 0346272a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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