Files
wordpress-docker/shared/php-fpm/entrypoint.sh
Elijah Duffy 82cdc6a2ad clean up & simplify structure w/ separate build workflows
Independent NGINX & PHP-FPM build workflows & directory structure for
cleaner and simpler workflow logic.
2025-12-07 22:45:10 -08:00

13 lines
305 B
Bash

#!/bin/sh
set -euo pipefail
: ${CHOWN_ON_START:=}
if [ "${CHOWN_ON_START}" = "1" ] || [ "${CHOWN_ON_START}" = "true" ]; then
echo "[entrypoint] CHOWN_ON_START enabled — fixing ownership of /var/www/html"
if [ -d /var/www/html ]; then
chown -R 1000:1000 /var/www/html || true
fi
fi
exec "$@"