blob: c779e3796dd6121daa54d234409da749f3bf1884 [file] [log] [blame]
Alexis de Talhouƫta6445582017-03-08 17:33:55 -05001#!/bin/bash
Michael Lando451a3402017-02-19 10:28:42 +02002
3cd /root/chef-solo
Yuli Shlosberg0875ce02018-01-25 13:53:36 +02004chef-solo -c solo.rb -o recipe[cassandra-actions::01-configureCassandra] -E ${ENVNAME}
Michael Lando451a3402017-02-19 10:28:42 +02005rc=$?
Michael Lando451a3402017-02-19 10:28:42 +02006if [[ $rc != 0 ]]; then exit $rc; fi
Yuli Shlosberg0875ce02018-01-25 13:53:36 +02007
Michael Lando451a3402017-02-19 10:28:42 +02008echo "########### starting cassandra ###########"
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02009
Michael Lando451a3402017-02-19 10:28:42 +020010/docker-entrypoint.sh cassandra -f &
11
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020012chef-solo -c solo.rb -E ${ENVNAME}
Areli Fuss46315432018-02-11 12:33:52 +020013rc=$?
Michael Lando50ffa6b2018-01-08 10:52:07 +020014if [[ $rc != 0 ]]; then exit $rc; fi
Areli Fuss46315432018-02-11 12:33:52 +020015while true; do sleep 30; done
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020016
Michael Lando451a3402017-02-19 10:28:42 +020017