File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -135,16 +135,17 @@ if [[ "$REGISTER_NODE" == true ]]; then
135135 set +e
136136fi
137137
138+ echo Copying /conf contents to writable directory, to support Zookeeper dynamic reconfiguration
138139ZOOCFGDIR=/data/conf
139140export ZOOCFGDIR
140141if [[ ! -d " $ZOOCFGDIR " ]]; then
141- echo Copying /conf contents to writable directory, to support Zookeeper dynamic reconfiguration
142142 mkdir $ZOOCFGDIR
143- cp -f /conf/zoo.cfg $ZOOCFGDIR
144- cp -f /conf/log4j.properties $ZOOCFGDIR
145- cp -f /conf/log4j-quiet.properties $ZOOCFGDIR
146- cp -f /conf/env.sh $ZOOCFGDIR
147143fi
144+ # refresh config files from source /conf dir
145+ cp -f /conf/log4j.properties $ZOOCFGDIR
146+ cp -f /conf/log4j-quiet.properties $ZOOCFGDIR
147+ cp -f /conf/env.sh $ZOOCFGDIR
148+ cp -f /conf/zoo.cfg $ZOOCFGDIR
148149
149150if [ -f $DYNCONFIG ]; then
150151 # Node registered, start server
You can’t perform that action at this time.
0 commit comments