sheetalm | aafdcc2 | 2018-04-18 11:21:26 +0530 | [diff] [blame] | 1 | #!/bin/sh |
sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 2 | |
priyanshu | daf0dfe | 2018-05-28 15:29:26 +0300 | [diff] [blame] | 3 | if [[ -z "${CS_USER}" ]]; then |
| 4 | echo "CS_USER environment variable must be set" |
sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 5 | exit 1 |
| 6 | fi |
| 7 | |
priyanshu | daf0dfe | 2018-05-28 15:29:26 +0300 | [diff] [blame] | 8 | if [[ -z "${CS_PASSWORD}" ]]; then |
| 9 | echo "CS_PASSWORD environment variable must be set" |
| 10 | exit 1 |
| 11 | fi |
| 12 | |
| 13 | if [[ -z "${CS_HOST}" ]]; then |
| 14 | echo "CS_HOST environment variable must be set" |
| 15 | exit 1 |
| 16 | fi |
| 17 | |
| 18 | cqlsh -u $CS_USER -p $CS_PASSWORD -f /create_activityspec_db.cql $CS_HOST $CS_PORT |