summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/src/main/cql/push.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-07-20 20:27:49 -0500
committerInstrumental <jonathan.gathman@att.com>2018-07-20 20:29:41 -0500
commitc23f2cdcda93f260e26781dfa59dfe2b89c77402 (patch)
tree3ee86a772dfbfb69af5bc216f1aa88f4f9c677cb /auth/auth-cass/src/main/cql/push.sh
parentfddbec6484479e521f7d073ed5158a9303575163 (diff)
Client Config & Cert Documentation
Issue-ID: AAF-378 Change-Id: Ic0c05803551f1874b230c5c9e031b5bf5ff03599 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-cass/src/main/cql/push.sh')
-rw-r--r--auth/auth-cass/src/main/cql/push.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/auth/auth-cass/src/main/cql/push.sh b/auth/auth-cass/src/main/cql/push.sh
index 8026c9f9..330326d5 100644
--- a/auth/auth-cass/src/main/cql/push.sh
+++ b/auth/auth-cass/src/main/cql/push.sh
@@ -1,5 +1,8 @@
-tar -xvf dat.gz
-for T in x509 ns_attrib config cred user_role perm role artifact ns; do
- cqlsh -e "use authz; COPY $T FROM '$T.dat' WITH DELIMITER='|';"
+mkdir -p dats
+cd dats
+tar -xvf ../dat.gz
+for T in $(ls *.dat); do
+ cqlsh -e "use authz; COPY ${T%.dat} FROM '$T' WITH DELIMITER='|';"
done
-
+cd -
+rm -Rf dats