Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
13 lines
284 B
Bash
13 lines
284 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Add elasticsearch as command if needed
|
|
if [ "${1:0:1}" = '-' ]; then
|
|
set -- elasticsearch "$@"
|
|
fi
|
|
|
|
# As argument is not related to elasticsearch,
|
|
# then assume that user wants to run his own process,
|
|
# for example a `bash` shell to explore this image
|
|
exec "$@" |