mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-09-11 12:05:41 +03:00
Avoid implementing a complex signal relaying mechanism in `docker-entrypoint*.sh` Instead, the shell performs `exec node ...` and the `node` process receives the signals directly. Related to #560, #575, which were my initial implemetation.
8 lines
117 B
Bash
8 lines
117 B
Bash
#!/bin/sh
|
|
if ! which -- "${1}"; then
|
|
# first arg is not an executable
|
|
exec node /usr/src/app/ "$@"
|
|
fi
|
|
|
|
exec "$@"
|