diff --git a/images/strapi-debian/docker-entrypoint.sh b/images/strapi-debian/docker-entrypoint.sh index 0dcb6d0..444c7b9 100755 --- a/images/strapi-debian/docker-entrypoint.sh +++ b/images/strapi-debian/docker-entrypoint.sh @@ -263,9 +263,8 @@ EOT echo "Starting your app (with ${STRAPI_MODE:-develop})..." if [ "$GITHUB_ACTIONS" -eq 1 ]; then - pipe="$(mktemp pipe.XXXXXX)" - rm "$pipe" 2>/dev/null - mkfifo "$pipe" + rm -f pipe + mkfifo pipe if [ -f "yarn.lock" ]; then yarn "${STRAPI_MODE:-develop}" > pipe & pid=$! @@ -273,7 +272,7 @@ EOT npm run "${STRAPI_MODE:-develop}" > pipe & pid=$! fi - exec 3<"$pipe" + exec 3/dev/null + rm -f pipe exit 0 fi @@ -290,7 +289,7 @@ EOT exec 3<&- kill "$pid" echo "Failed to launch Strapi. Exiting container with code 1..." - rm "$pipe" 2>/dev/null + rm -f pipe exit 1 fi