zammad-docker-compose/containers/zammad-scheduler/docker-entrypoint.sh

14 lines
287 B
Bash
Raw Normal View History

#!/bin/bash
if [ "$1" = 'zammad-scheduler' ]; then
2017-03-08 18:37:05 +00:00
# wait for zammad process coming up
until echo > /dev/tcp/zammad-railsserver/3000; do
echo "waiting for zammad to be ready..."
sleep 2
done
2017-03-08 18:37:05 +00:00
# start scheduler
cd ${ZAMMAD_DIR}
bundle exec script/scheduler.rb run
fi