summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-10-08 14:26:20 -0500
committerInstrumental <jonathan.gathman@att.com>2018-10-08 14:34:51 -0500
commit9c74970c58c647c93caf2c7fb85cacb6602a7292 (patch)
tree56f6c5dbd25562a7c22e81d6cbaf7c95a51c6031 /auth/auth-cass
parent94053613671f7456ea5114a8421d0e6868bdbba0 (diff)
Fix DB push
Issue-ID: AAF-543 Change-Id: I5e2bef6bc228906f221cb13433b8813387a1144d Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-cass')
-rw-r--r--auth/auth-cass/cass_init/push.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth/auth-cass/cass_init/push.sh b/auth/auth-cass/cass_init/push.sh
index 48521699..30e830ed 100644
--- a/auth/auth-cass/cass_init/push.sh
+++ b/auth/auth-cass/cass_init/push.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Push data from Cassandra ".dat" files
+# Push data from Cassandra ".dat" files into Tables
# These are obtained from "gzipped" files, or pre-placed (i.e. initialization)
# in the "dats" directory
#
@@ -17,7 +17,7 @@ fi
cd dats
for T in $(ls *.dat); do
if [ -s $T ]; then
- cqlsh -e "use authz; COPY ${T%.dat} FROM '$T' WITH DELIMITER='|';"
+ cqlsh -e "use authz; COPY $T FROM '$T.dat' WITH DELIMITER='|';"
fi
done
cd $DIR