blob: 0daa82ff88ec8ea243d18c405d06c7228eefdb37 [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 ###########"
9# start cassandra
10/docker-entrypoint.sh cassandra -f &
11
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020012chef-solo -c solo.rb -E ${ENVNAME}
Michael Lando50ffa6b2018-01-08 10:52:07 +020013if [[ $rc != 0 ]]; then exit $rc; fi
Yuli Shlosberg0875ce02018-01-25 13:53:36 +020014
15exec "$@";
Michael Lando451a3402017-02-19 10:28:42 +020016