diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-28 23:20:17 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-28 23:20:17 -0700 |
commit | 2573dbcee9249a6e9301dd0d7fd9e0b893b2ab2f (patch) | |
tree | 9424bfaeea771172db394bc681b8bb946d3c7795 /entrypoint.sh | |
download | wwwgit-2573dbcee9249a6e9301dd0d7fd9e0b893b2ab2f.tar.gz wwwgit-2573dbcee9249a6e9301dd0d7fd9e0b893b2ab2f.zip |
Init :3
Diffstat (limited to 'entrypoint.sh')
-rwxr-xr-x | entrypoint.sh | 15 |
1 files changed, 15 insertions, 0 deletions
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;' |