From 2573dbcee9249a6e9301dd0d7fd9e0b893b2ab2f Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 28 Jul 2025 23:20:17 -0700 Subject: Init :3 --- entrypoint.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 entrypoint.sh (limited to 'entrypoint.sh') diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..5bdcede --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +echo "Starting fcgiwrap..." +su -l www-data -s /bin/bash -c "/usr/sbin/fcgiwrap -s unix:/run/sock/fcgiwrap.socket" & + +echo "Waiting for fcgiwrap socket to appear..." +while [ ! -S /run/sock/fcgiwrap.socket ]; do + sleep 0.1 +done +echo "fcgiwrap socket found." + +echo "Starting Nginx..." +exec nginx -g 'daemon off;' -- cgit v1.2.3-70-g09d2