Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ chown -R appuser:appuser $APP_HOME

echo "Starting with UID: $PUID, GID: $PGID"

# Fix permissions
chown -R "$PUID":"$PGID" /config /input /output

until cd /home/app/web
do
echo "Waiting for server volume..."
Expand All @@ -28,6 +25,16 @@ do
sleep 2
done

# Fix permissions
#

chown -R "$PUID":"$PGID" /config

if [ ${FIX_MEDIA_PERMISSIONS:-true} = true ]; then
chown -R "$PUID":"$PGID" /input /output
fi

echo "Collecting static"
python manage.py collectstatic --noinput

# Start Celery Worker
Expand Down