2023-12-28 23:46:59 +00:00
|
|
|
#!/bin/bash
|
2024-01-04 11:00:45 +00:00
|
|
|
set -o errexit -o nounset -o pipefail
|
2023-12-28 23:46:59 +00:00
|
|
|
|
|
|
|
source /lib.sh
|
|
|
|
|
|
|
|
entrypoint_log "==> Create the storage tree if needed"
|
2024-01-04 11:20:22 +00:00
|
|
|
as_runtime_user cp --recursive storage.skel/* storage/
|
2023-12-28 23:46:59 +00:00
|
|
|
|
|
|
|
entrypoint_log "==> Ensure storage is linked"
|
2024-01-04 11:20:22 +00:00
|
|
|
as_runtime_user php artisan storage:link
|
2023-12-28 23:46:59 +00:00
|
|
|
|
|
|
|
entrypoint_log "==> Ensure permissions are correct"
|
2024-01-04 11:20:22 +00:00
|
|
|
chown --recursive ${RUNTIME_UID}:${RUNTIME_GID} storage/ bootstrap/
|