Skip to content
Permalink
Browse files

NAS-2429 Updated RunNetarchiveSuite.sh to use default bundle defined …

…from cmd,
  • Loading branch information...
mss
mss committed Jul 7, 2015
1 parent bad9a28 commit 2815dadb5b98f0b5fa46868364a98aa6cfc9ccb1
Showing with 7 additions and 3 deletions.
  1. +7 −3 deploy/deploy-core/scripts/RunNetarchiveSuite.sh
@@ -4,23 +4,26 @@
# $1 = The NetarchiveSuite package file
# $2 = The configuration file for deployment
# $3 = The directory to deploy from

# $4 = The Heritrix3 bundle zip to use
# (1) setting up directory and variables.
if [ "$#" -ne 3 ]; then

if [ "$#" -ne 4 ]; then
echo "Usage:"
echo "\$ bash RunNetarchiveSuite.sh NetarchiveSuite.zip deploy.xml USER\n";
echo "\tNetarchiveSuite.zip - Release zip of NetarchiveSuite."
echo "\tdeploy.xml - Deploy xml file, which describe the configurations of"
echo "\t\tNetArchiveSuite."
echo "\tUSER - RunNetArchiveSuite.sh creates a USER directory, where "
echo "\t\tinstallation is placed.\n "
echo "\tH3BUNDLER - The Heritrix3 bundle zip to use"
exit 0;
fi;
echo RETRIEVING AND TESTING VARIABLES
# Retrieve command line parameters
NETARCHIVESUITE=$1
CONFIG=$2
BASEDIR=$3
H3BUNDLE=$4

# (2) create directory
echo CREATING/CLEANING DIRECTORY $BASEDIR
@@ -34,12 +37,13 @@ unzip -q $NETARCHIVESUITE -d $BASEDIR
# (4) copy elements to directory and go there
echo COPYING FILES TO $BASEDIR
cp $NETARCHIVESUITE -d $BASEDIR
cp $H3BUNDLE -d $BASEDIR
cp $CONFIG -d $BASEDIR
cd $BASEDIR

# (3) Run deploy
echo DEPLOYING $CONFIG
java -classpath lib/netarchivesuite-deploy-core.jar dk.netarkivet.deploy.DeployApplication -C$CONFIG -Z$NETARCHIVESUITE -L./examples/logback_template.xml -S./examples/security_template.policy -O. -Eyes
java -classpath lib/netarchivesuite-deploy-core.jar dk.netarkivet.deploy.DeployApplication -C$CONFIG -Z$NETARCHIVESUITE -L./examples/logback_template.xml -S./examples/security_template.policy -O. -Eyes -B$H3BUNDLE

# (4) Make script files executable
echo MAKING FILES EXECUTABLE

0 comments on commit 2815dad

Please sign in to comment.
You can’t perform that action at this time.