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

13 lines
287 B
Bash
Raw Normal View History

#!/bin/bash
if [ "$1" = 'zammad-websocket' ]; 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 5
done
2017-03-08 18:37:05 +00:00
cd ${ZAMMAD_DIR}
bundle exec script/websocket-server.rb -b 0.0.0.0 start
fi