mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-11-05 05:20:26 +03:00
f242cc1760
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 "$@"
|