blob: 582f0bde0a7d92b0ca01b878661836194cec5672 [file] [log] [blame]
sheetalmaafdcc22018-04-18 11:21:26 +05301#!/bin/sh
sheetalmed128902018-03-13 19:32:08 +05302
priyanshudaf0dfe2018-05-28 15:29:26 +03003if [[ -z "${CS_USER}" ]]; then
4 echo "CS_USER environment variable must be set"
sheetalmed128902018-03-13 19:32:08 +05305 exit 1
6fi
7
priyanshudaf0dfe2018-05-28 15:29:26 +03008if [[ -z "${CS_PASSWORD}" ]]; then
9 echo "CS_PASSWORD environment variable must be set"
10 exit 1
11fi
12
13if [[ -z "${CS_HOST}" ]]; then
14 echo "CS_HOST environment variable must be set"
15 exit 1
16fi
17
18cqlsh -u $CS_USER -p $CS_PASSWORD -f /create_activityspec_db.cql $CS_HOST $CS_PORT