Fix DB push 12/70012/1
authorInstrumental <jonathan.gathman@att.com>
Mon, 8 Oct 2018 19:26:20 +0000 (14:26 -0500)
committerInstrumental <jonathan.gathman@att.com>
Mon, 8 Oct 2018 19:34:51 +0000 (14:34 -0500)
Issue-ID: AAF-543
Change-Id: I5e2bef6bc228906f221cb13433b8813387a1144d
Signed-off-by: Instrumental <jonathan.gathman@att.com>
auth/auth-cass/cass_init/push.sh

index 4852169..30e830e 100644 (file)
@@ -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