Add 8.4/entrypoint.sh

This commit is contained in:
2025-12-26 11:33:45 +09:00
parent 1ea5669f9c
commit f399a9c25a

15
8.4/entrypoint.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
# www-data 권한 정리 (카페24와 유사)
chown -R www-data:www-data /var/www/html
# index.php 없으면 테스트용 생성
if [ ! -f /var/www/html/index.php ]; then
cat <<'EOF' > /var/www/html/index.php
<?php
phpinfo();
EOF
fi
exec "$@"