mirror of https://github.com/openspug/spug
				
				
				
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			404 B
		
	
	
	
		
			Bash
		
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			404 B
		
	
	
	
		
			Bash
		
	
	
#!/bin/bash
 | 
						|
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
 | 
						|
# Copyright: (c) <spug.dev@gmail.com>
 | 
						|
# Released under the AGPL-3.0 License.
 | 
						|
# start schedule service
 | 
						|
 | 
						|
cd $(dirname $(dirname $0))
 | 
						|
if [ -f ./venv/bin/activate ]; then
 | 
						|
  source ./venv/bin/activate
 | 
						|
fi
 | 
						|
 | 
						|
if command -v python3 &> /dev/null; then
 | 
						|
  PYTHON=python3
 | 
						|
else
 | 
						|
  PYTHON=python
 | 
						|
fi
 | 
						|
 | 
						|
exec $PYTHON manage.py runscheduler
 |