pixelfed/contrib/docker/shared/root/docker/entrypoint.d/10-storage.sh

11 lines
280 B
Bash
Raw Normal View History

2024-01-04 16:08:01 +00:00
#!/bin/bash
source /docker/helpers.sh
2024-01-04 21:21:00 +00:00
entrypoint-set-name "$0"
2024-01-04 16:08:01 +00:00
2024-01-04 21:21:00 +00:00
run-as-runtime-user cp --recursive storage.skel/* storage/
run-as-runtime-user php artisan storage:link
2024-01-04 16:08:01 +00:00
2024-01-04 21:21:00 +00:00
log-info "Ensure permissions are correct"
2024-01-04 16:08:01 +00:00
chown --recursive ${RUNTIME_UID}:${RUNTIME_GID} storage/ bootstrap/