Add 8.4/entrypoint.sh
This commit is contained in:
15
8.4/entrypoint.sh
Normal file
15
8.4/entrypoint.sh
Normal 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 "$@"
|
||||||
Reference in New Issue
Block a user