Skip to content

Commit

Permalink
QPID-8679: [Broker-J] Copy nested configuration files in work-init an…
Browse files Browse the repository at this point in the history
…d work-override (#244)
  • Loading branch information
FlixCoder authored Sep 30, 2024
1 parent de2c347 commit 65e6524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qpid-docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ set -e

if ! [ -f ./work/config.json ]; then
if [ -d ./work-init ]; then
for file in `ls ./work-init`; do echo copying file to work folder: $file; cp ./work-init/$file ./work || :; done
for file in `ls ./work-init`; do echo copying file to work folder: $file; cp -r ./work-init/$file ./work || :; done
fi
sed -i "s/QPID_ADMIN_USER/${QPID_ADMIN_USER}/g" /qpid-broker-j/work/broker.acl
if [ -d ./work-override ]; then
for file in `ls ./work-override`; do echo copying file to work folder: $file; cp ./work-override/$file ./work || :; done
for file in `ls ./work-override`; do echo copying file to work folder: $file; cp -r ./work-override/$file ./work || :; done
fi
else
echo "skipping broker instance creation; instance already exists"
fi

exec java -server $JAVA_GC $JAVA_MEM $JAVA_OPTS -DQPID_HOME=/qpid-broker-j -DQPID_WORK=/qpid-broker-j/work -cp "/qpid-broker-j/lib/*" org.apache.qpid.server.Main
exec java -server $JAVA_GC $JAVA_MEM $JAVA_OPTS -DQPID_HOME=/qpid-broker-j -DQPID_WORK=/qpid-broker-j/work -cp "/qpid-broker-j/lib/*" org.apache.qpid.server.Main

0 comments on commit 65e6524

Please sign in to comment.