mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
19 lines
295 B
Bash
Executable File
19 lines
295 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${CRAWLAB_NODE_MASTER}" = "Y" ]; then
|
|
# start master
|
|
/bin/bash /app/bin/docker-start-master.sh
|
|
|
|
# node type
|
|
echo "node type: master"
|
|
|
|
# start crawlab
|
|
crawlab-server master
|
|
else
|
|
# node type
|
|
echo "node type: worker"
|
|
|
|
# start crawlab
|
|
crawlab-server worker
|
|
fi
|