Skip to content

Commit

Permalink
copy amq_config instead of copying into existing conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbiam committed Jul 17, 2024
1 parent f35cc7d commit ab82f4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion start_amq.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash

cp /usr/local/activemq/conf/* /etc/amqcreds/

echo 'activemq.username=system' > /etc/amqcreds/credentials.properties
echo "activemq.password=$AMQ_TOKEN" >> /etc/amqcreds/credentials.properties
echo "guest.password=$AMQ_TOKEN" >> /etc/amqcreds/credentials.properties

cp /etc/amqcreds/credentials.properties /usr/local/activemq/conf/credentials.properties
export ACTIVEMQ_HOME=/etc/amqcreds

#cp /etc/amqcreds/credentials.properties /usr/local/activemq/conf/credentials.properties

# start AMQ
/usr/local/activemq/bin/activemq console xbean:file:/etc/activemq/activemq.xml

0 comments on commit ab82f4b

Please sign in to comment.