mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-11-24 14:02:18 +03:00
fix: Failed to open X display when restarting container (#790)
* Update docker-entrypoint.sh fix error: what(): Failed to open X display by deleting the .X99-lock file at the start of the containe * Update docker-entrypoint.sh add check - if the file .X99-lock exists it will be removed. If not nothing is done. * Update docker-entrypoint.sh Change check and deletion to a one-liner
This commit is contained in:
parent
5aaa43a70c
commit
78a88c1857
@ -1,6 +1,7 @@
|
||||
#!/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/ "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user