From c8dbe98a4540d37e9fd4b2e8fc1191adf5a525c0 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Mon, 8 Oct 2018 15:49:00 -0500 Subject: fix push/pull Issue-ID: AAF-543 Change-Id: Iaf2956866befcf0b1229c2146ebf138b3aa78513 Signed-off-by: Instrumental --- auth/auth-cass/cass_init/pull.sh | 2 +- auth/auth-cass/cass_init/push.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'auth/auth-cass/cass_init') diff --git a/auth/auth-cass/cass_init/pull.sh b/auth/auth-cass/cass_init/pull.sh index 94695ed1..b25099f8 100644 --- a/auth/auth-cass/cass_init/pull.sh +++ b/auth/auth-cass/cass_init/pull.sh @@ -8,7 +8,7 @@ mkdir -p dats cd dats TABLES="$(cqlsh -e "use authz; describe tables")" for T in $TABLES ; do - cqlsh -e "use authz; COPY $T TO '$T.dat' WITH DELIMITER='|';" + cqlsh -e "COPY authz.$T TO '$T.dat' WITH DELIMITER='|';" done cd $DIR tar -cvzf dat.gz dats/*.dat diff --git a/auth/auth-cass/cass_init/push.sh b/auth/auth-cass/cass_init/push.sh index 30e830ed..09a0fccf 100644 --- a/auth/auth-cass/cass_init/push.sh +++ b/auth/auth-cass/cass_init/push.sh @@ -17,8 +17,9 @@ fi cd dats for T in $(ls *.dat); do if [ -s $T ]; then - cqlsh -e "use authz; COPY $T FROM '$T.dat' WITH DELIMITER='|';" + cqlsh -e "COPY authz.${T/.dat/} FROM '$T' WITH DELIMITER='|';" fi done cd $DIR #rm -Rf dats + -- cgit 1.2.3-korg