Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions docker/bin/zookeeperStart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,17 @@ if [[ "$REGISTER_NODE" == true ]]; then
set +e
fi

echo Copying /conf contents to writable directory, to support Zookeeper dynamic reconfiguration
ZOOCFGDIR=/data/conf
export ZOOCFGDIR
if [[ ! -d "$ZOOCFGDIR" ]]; then
echo Copying /conf contents to writable directory, to support Zookeeper dynamic reconfiguration
mkdir $ZOOCFGDIR
cp -f /conf/zoo.cfg $ZOOCFGDIR
cp -f /conf/log4j.properties $ZOOCFGDIR
cp -f /conf/log4j-quiet.properties $ZOOCFGDIR
cp -f /conf/env.sh $ZOOCFGDIR
fi
# refresh config files from source /conf dir
cp -f /conf/log4j.properties $ZOOCFGDIR
cp -f /conf/log4j-quiet.properties $ZOOCFGDIR
cp -f /conf/env.sh $ZOOCFGDIR
cp -f /conf/zoo.cfg $ZOOCFGDIR

if [ -f $DYNCONFIG ]; then
# Node registered, start server
Expand Down