Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
AAF Services non root, all platforms
[aaf/authz.git]
/
auth
/
auth-cass
/
cass_init
/
push.sh
diff --git
a/auth/auth-cass/cass_init/push.sh
b/auth/auth-cass/cass_init/push.sh
index
f887f07
..
a6f8277
100644
(file)
--- a/
auth/auth-cass/cass_init/push.sh
+++ b/
auth/auth-cass/cass_init/push.sh
@@
-22,6
+22,9
@@
# These are obtained from "gzipped" files, or pre-placed (i.e. initialization)
# in the "dats" directory
#
# These are obtained from "gzipped" files, or pre-placed (i.e. initialization)
# in the "dats" directory
#
+
+CQLSH="${CQLSH:=/usr/bin/cqlsh} -k authz"
+
DIR=/opt/app/aaf/cass_init
cd $DIR
if [ ! -e dats ]; then
DIR=/opt/app/aaf/cass_init
cd $DIR
if [ ! -e dats ]; then
@@
-35,7
+38,7
@@
fi
cd dats
for T in $(ls *.dat); do
if [ -s $T ]; then
cd dats
for T in $(ls *.dat); do
if [ -s $T ]; then
-
cqlsh
--request-timeout=100 -e "COPY authz.${T/.dat/} FROM '$T' WITH DELIMITER='|';";
+
$CQLSH
--request-timeout=100 -e "COPY authz.${T/.dat/} FROM '$T' WITH DELIMITER='|';";
fi
done
cd $DIR
fi
done
cd $DIR