Update docker-entrypoint.sh

Change check and deletion to a one-liner
This commit is contained in:
a14stoner 2023-03-19 14:52:35 +01:00 committed by Andrew Calcutt
parent b76d2b7c0f
commit 7bb2a5610d

View file

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