-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.sh
executable file
·22 lines (20 loc) · 925 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e #command fail -> script fail
set -u #unset variable reference causes script fail
# Install server-side iterators in Accumulo.
if [ -z ${ACCUMULO_HOME+x} ]; then
echo "NOT installing Lara-Graphulo tserver JAR in Accumulo server because ACCUMULO_HOME is not set";
else
cp target/lara-graphulo-*-tserver.jar "$ACCUMULO_HOME/lib/ext"
echo "Installed Lara-Graphulo tserver jar into ACCUMULO_HOME at $ACCUMULO_HOME"
fi
## Install client code + dependencies in D4M.
#if [ -z ${D4M_HOME+x} ]; then
# echo "Not installing Graphulo JAR in D4M installation because D4M_HOME is not set";
#else
# cp $(echo target/graphulo-*.jar | tr ' ' '\n' | grep -v alldeps) "$D4M_HOME/lib"
# unzip -ouq target/lara-graphulo-*-libext.zip -d "$D4M_HOME"
# # Replace DBinit.m in D4M matlab_src with new version.
# mv "$D4M_HOME/DBinit.m" "$D4M_HOME/matlab_src"
# echo "Installed Graphulo into D4M_HOME at $D4M_HOME"
#fi