Files
crawlab/bin/docker-init.sh
2022-06-11 11:14:12 +08:00

19 lines
271 B
Bash
Executable File

#!/bin/bash
if [ "${CRAWLAB_NODE_MASTER}" = "Y" ]; then
# start master
/bin/bash /app/bin/docker-start-master.sh
# env
export IS_MASTER=1
# start crawlab
crawlab-server master
else
# env
export IS_MASTER=0
# start crawlab
crawlab-server worker
fi