summaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-init/start.sh
blob: 582f0bde0a7d92b0ca01b878661836194cec5672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if [[ -z "${CS_USER}" ]]; then
	echo "CS_USER environment variable must be set"
	exit 1
fi

if [[ -z "${CS_PASSWORD}" ]]; then
	echo "CS_PASSWORD environment variable must be set"
	exit 1
fi

if [[ -z "${CS_HOST}" ]]; then
	echo "CS_HOST environment variable must be set"
	exit 1
fi

cqlsh -u $CS_USER -p $CS_PASSWORD -f /create_activityspec_db.cql $CS_HOST $CS_PORT