Update docker-entrypoint.sh
add check - if the file .X99-lock exists it will be removed. If not nothing is done.
This commit is contained in:
parent
205e0af730
commit
b76d2b7c0f
1 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
|||
#!/bin/sh
|
||||
if ! which -- "${1}"; then
|
||||
# first arg is not an executable
|
||||
rm /tmp/.X99-lock -f > /dev/null || ``
|
||||
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 a new issue