2020-01-07 16:25:18 +00:00
|
|
|
#!/bin/bash
|
2020-01-15 12:48:22 +00:00
|
|
|
# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
|
|
|
|
# Copyright: (c) <spug.dev@gmail.com>
|
2020-06-14 10:30:52 +00:00
|
|
|
# Released under the AGPL-3.0 License.
|
2020-01-07 16:25:18 +00:00
|
|
|
# start worker service
|
2020-01-15 12:48:22 +00:00
|
|
|
|
2020-01-07 16:25:18 +00:00
|
|
|
cd $(dirname $(dirname $0))
|
2020-05-07 10:13:55 +00:00
|
|
|
if [ -f ./venv/bin/activate ]; then
|
|
|
|
source ./venv/bin/activate
|
|
|
|
fi
|
2020-06-25 11:08:17 +00:00
|
|
|
|
|
|
|
if command -v python3 &> /dev/null; then
|
|
|
|
PYTHON=python3
|
|
|
|
else
|
|
|
|
PYTHON=python
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec $PYTHON manage.py runworker ssh_exec
|