parent
5aaa43a70c
commit
82c8e73a90
1 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
if ! which -- "${1}"; then
|
if ! which -- "${1}"; then
|
||||||
# first arg is not an executable
|
# first arg is not an executable
|
||||||
export DISPLAY=:99
|
export DISPLAY=:99
|
||||||
Xvfb "${DISPLAY}" -nolisten unix &
|
# Launch Xvfb if needed
|
||||||
|
xdpyinfo --display "${DISPLAY}" >/dev/null 2>&1 || Xvfb "${DISPLAY}" -nolisten unix &
|
||||||
exec node /usr/src/app/ "$@"
|
exec node /usr/src/app/ "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue