Add additional logic to entrypoint to handle more subcommands. (#1350)
This commit is contained in:
1 parent
d474cc6e29
commit
e41ffb0b28
2 files changed
+6
No files matched your search
@@ -47,6 +47,8 @@ Boundary) but it's worth repeating.
|
|||||||
causing an error when the scheduler attempts to run jobs
|
causing an error when the scheduler attempts to run jobs
|
||||||
([issue](https://github.com/hashicorp/boundary/issues/1309),
|
([issue](https://github.com/hashicorp/boundary/issues/1309),
|
||||||
[PR](https://github.com/hashicorp/boundary/pull/1310)).
|
[PR](https://github.com/hashicorp/boundary/pull/1310)).
|
||||||
|
* Docker: update entrypoint script to handle more Boundary subcommands for
|
||||||
|
better UX
|
||||||
|
|
||||||
## 0.3.0 (2021/06/08)
|
## 0.3.0 (2021/06/08)
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ if [ "$1" = 'server' ]; then
|
|||||||
shift
|
shift
|
||||||
set -- boundary server \
|
set -- boundary server \
|
||||||
"$@"
|
"$@"
|
||||||
|
elif boundary --help "$1" 2>&1 | grep -q "boundary $1"; then
|
||||||
|
# We can't use the return code to check for the existence of a subcommand, so
|
||||||
|
# we have to use grep to look for a pattern in the help output.
|
||||||
|
set -- boundary "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we are running Boundary, make sure it executes as the proper user.
|
# If we are running Boundary, make sure it executes as the proper user.
|
||||||
|
|||||||
Reference in new issue
Block a user