Skip to content

Commit

Permalink
DBZ-8266 Fix remaining cp commands
Browse files Browse the repository at this point in the history
  • Loading branch information
vjuranek authored and jpechane committed Sep 27, 2024
1 parent 126b24b commit 9129c17
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
9 changes: 8 additions & 1 deletion kafka/2.7/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,15 @@ if [[ -n "$JMXPORT" && -n "$JMXHOST" ]]; then
export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=${JMXHOST} -Dcom.sun.management.jmxremote.rmi.port=${JMXPORT} -Dcom.sun.management.jmxremote.port=${JMXPORT} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=${JMXAUTH} -Dcom.sun.management.jmxremote.ssl=${JMXSSL} "
fi

# Choose the right `cp` argument, `--update=none` is not available on RHEL
release=`cat /etc/redhat-release | cut -d ' ' -f1`
if [ $release = "Fedora" ]; then
cp_arg="-r --update=none"
else
cp_arg="-rn"
fi
# Copy config files if not provided in volume
cp -rn $KAFKA_HOME/config.orig/* $KAFKA_HOME/config
cp $cp_arg $KAFKA_HOME/config.orig/* $KAFKA_HOME/config

# Process the argument to this container ...
case $1 in
Expand Down
9 changes: 8 additions & 1 deletion kafka/3.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,15 @@ if [[ -n "$JMXPORT" && -n "$JMXHOST" ]]; then
export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=${JMXHOST} -Dcom.sun.management.jmxremote.rmi.port=${JMXPORT} -Dcom.sun.management.jmxremote.port=${JMXPORT} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=${JMXAUTH} -Dcom.sun.management.jmxremote.ssl=${JMXSSL} "
fi

# Choose the right `cp` argument, `--update=none` is not available on RHEL
release=`cat /etc/redhat-release | cut -d ' ' -f1`
if [ $release = "Fedora" ]; then
cp_arg="-r --update=none"
else
cp_arg="-rn"
fi
# Copy config files if not provided in volume
cp -rn $KAFKA_HOME/config.orig/* $KAFKA_HOME/config
cp $cp_arg $KAFKA_HOME/config.orig/* $KAFKA_HOME/config

# Process the argument to this container ...
case $1 in
Expand Down
9 changes: 8 additions & 1 deletion zookeeper/2.7/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ fi
# Process some known arguments to run Zookeeper ...
case $ARG1 in
start)
# Choose the right `cp` argument, `--update=none` is not available on RHEL
release=`cat /etc/redhat-release | cut -d ' ' -f1`
if [ $release = "Fedora" ]; then
cp_arg="-r --update=none"
else
cp_arg="-rn"
fi
# Copy config files if not provided in volume
cp -rn $ZK_HOME/conf.orig/* $ZK_HOME/conf
cp $cp_arg $ZK_HOME/conf.orig/* $ZK_HOME/conf

#
# Process the logging-related environment variables. Zookeeper's log configuration allows *some* variables to be
Expand Down
9 changes: 8 additions & 1 deletion zookeeper/3.0/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ fi
# Process some known arguments to run Zookeeper ...
case $ARG1 in
start)
# Choose the right `cp` argument, `--update=none` is not available on RHEL
release=`cat /etc/redhat-release | cut -d ' ' -f1`
if [ $release = "Fedora" ]; then
cp_arg="-r --update=none"
else
cp_arg="-rn"
fi
# Copy config files if not provided in volume
cp -rn $ZK_HOME/conf.orig/* $ZK_HOME/conf
cp $cp_arg $ZK_HOME/conf.orig/* $ZK_HOME/conf

#
# Process the logging-related environment variables. Zookeeper's log configuration allows *some* variables to be
Expand Down

0 comments on commit 9129c17

Please sign in to comment.