1
0
Fork 0
pixelfed/docker/shared/root/docker/entrypoint.d/10-storage.sh

14 lines
440 B
Bash
Raw Normal View History

2024-01-04 16:08:01 +00:00
#!/bin/bash
2024-01-15 17:16:00 +00:00
: "${ENTRYPOINT_ROOT:="/docker"}"
# shellcheck source=SCRIPTDIR/../helpers.sh
source "${ENTRYPOINT_ROOT}/helpers.sh"
2024-01-04 16:08:01 +00:00
2024-01-05 00:11:20 +00:00
entrypoint-set-script-name "$0"
2024-01-04 16:08:01 +00:00
# Copy the [storage/] skeleton files over the "real" [storage/] directory so assets are updated between versions
run-as-runtime-user cp --force --recursive storage.skel/. ./storage/
2024-01-04 16:08:01 +00:00
# Ensure storage linkk are correctly configured
2024-01-05 16:52:00 +00:00
run-as-runtime-user php artisan storage:link