sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | if [[ -z "${CASSANDRA_HOST}" ]]; then | ||||
4 | echo "CASSANDRA_HOST environment variable must be set" | ||||
5 | exit 1 | ||||
6 | fi | ||||
7 | |||||
8 | #Replace 'CASSANDRA_HOST' in configuration.yaml with value of CASSANDRA_HOST environment variable | ||||
9 | sed -i "s/CASSANDRA_HOST/${CASSANDRA_HOST}/" configuration.yaml | ||||
10 | |||||
11 | java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 "$JETTY_HOME/start.jar" -Dconfiguration.yaml=configuration.yaml |