1
0
Fork 0
pixelfed/contrib/docker/shared/docker-entrypoint.d/00-storage.sh

14 lines
335 B
Bash
Executable File

#!/bin/bash
set -e
source /lib.sh
entrypoint_log "==> Create the storage tree if needed"
as_www_user cp --recursive storage.skel/* storage/
entrypoint_log "==> Ensure storage is linked"
as_www_user php artisan storage:link
entrypoint_log "==> Ensure permissions are correct"
chown --recursive www-data:www-data storage/ bootstrap/