1 2 3 4 5 6 7 8
source init_sg.sh while [ $? -ne 0 ]; do sleep 10 source init_sg.sh done & /bin/bash -c "source /usr/local/bin/docker-entrypoint.sh;"