mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-18 18:40:45 +00:00
13 lines
386 B
Bash
Executable file
13 lines
386 B
Bash
Executable file
#!/bin/bash
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
source /lib.sh
|
|
|
|
entrypoint_log "==> Create the storage tree if needed"
|
|
as_runtime_user cp --recursive storage.skel/* storage/
|
|
|
|
entrypoint_log "==> Ensure storage is linked"
|
|
as_runtime_user php artisan storage:link
|
|
|
|
entrypoint_log "==> Ensure permissions are correct"
|
|
chown --recursive ${RUNTIME_UID}:${RUNTIME_GID} storage/ bootstrap/
|