mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-31 10:37:12 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			323 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			323 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| echo "Checking if we should start flower..."
 | |
| 
 | |
| if [[ -n  "${PAPERLESS_ENABLE_FLOWER}" ]]; then
 | |
| 	# 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"
 | |
| fi
 |