2022-10-15 12:53:01 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
echo "Checking if we should start flower..."
|
|
|
|
|
|
|
|
|
|
if [[ -n "${PAPERLESS_ENABLE_FLOWER}" ]]; then
|
2023-02-03 14:19:22 -08:00
|
|
|
# Small delay to allow celery to be up first
|
|
|
|
|
echo "Starting flower in 5s"
|
|
|
|
|
sleep 5
|
|
|
|
|
celery --app paperless flower --conf=/usr/src/paperless/src/paperless/flowerconfig.py
|
|
|
|
|
else
|
|
|
|
|
echo "Not starting flower"
|
2022-10-15 12:53:01 -07:00
|
|
|
fi
|