Files
myAnsuran-KIK-JPPH-/docker/php-apache/entrypoint.sh
2026-06-16 16:35:16 +08:00

18 lines
496 B
Bash

#!/usr/bin/env bash
set -e
# Bind mount (./src:/var/www/html) menindih ownership dari image, jadi kita
# betulkan permission storage setiap kali container start — bukan masa build.
mkdir -p \
storage/framework/cache/laravel-excel \
storage/framework/sessions \
storage/framework/views \
storage/logs \
bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
chmod -R 775 storage bootstrap/cache
# Jalankan arahan utama container (apache2-foreground)
exec "$@"