tileserver-gl/docker-entrypoint.sh
a14stoner b76d2b7c0f Update docker-entrypoint.sh
add check - if the file .X99-lock exists it will be removed. If not nothing is done.
2023-03-19 11:01:51 -04:00

13 lines
239 B
Bash
Executable file

#!/bin/sh
if ! which -- "${1}"; then
# first arg is not an executable
if [ -e /tmp/.X99-lock ]
then
rm /tmp/.X99-lock -f
fi
export DISPLAY=:99
Xvfb "${DISPLAY}" -nolisten unix &
exec node /usr/src/app/ "$@"
fi
exec "$@"