diff --git a/3.9.4/docker-entrypoint.sh b/3.9.4/docker-entrypoint.sh index 03a4510..422c230 100755 --- a/3.9.4/docker-entrypoint.sh +++ b/3.9.4/docker-entrypoint.sh @@ -2,6 +2,9 @@ set -e +# Create directories if they don't exist +mkdir -p "$ZOO_DATA_DIR" "$ZOO_DATA_LOG_DIR" "$ZOO_LOG_DIR" + # Allow the container to be started with `--user` if [[ "$1" = 'zkServer.sh' && "$(id -u)" = '0' ]]; then chown -R zookeeper "$ZOO_DATA_DIR" "$ZOO_DATA_LOG_DIR" "$ZOO_LOG_DIR"