diff options
Diffstat (limited to 'services/activity-spec/activity-spec-init/start.sh')
-rw-r--r-- | services/activity-spec/activity-spec-init/start.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/services/activity-spec/activity-spec-init/start.sh b/services/activity-spec/activity-spec-init/start.sh new file mode 100644 index 0000000000..5242bd5d9e --- /dev/null +++ b/services/activity-spec/activity-spec-init/start.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ -z "${CASSANDRA_HOST}" ]]; then + echo "CASSANDRA_HOST environment variable must be set" + exit 1 +fi + +cqlsh -f /create_activityspec_db.cql $CASSANDRA_HOST $CASSANDRA_PORT
\ No newline at end of file |