summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/cass_init/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auth/auth-cass/cass_init/build.sh')
-rw-r--r--auth/auth-cass/cass_init/build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/auth/auth-cass/cass_init/build.sh b/auth/auth-cass/cass_init/build.sh
new file mode 100644
index 00000000..caa07494
--- /dev/null
+++ b/auth/auth-cass/cass_init/build.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+CQLSH=/Volumes/Data/apache-cassandra-2.1.14/bin/cqlsh
+DIR=.
+for T in ns perm role user_role cred config; do
+ $CQLSH -e "COPY authz.$T TO '$DIR/$T.dat' WITH DELIMITER='|'"
+done