Skip to content

Commit

Permalink
have vagrant download glassfish and solr #725 #765
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Jul 24, 2014
1 parent 1da7658 commit afa11da
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/vagrant/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ chkconfig postgresql on
GLASSFISH_USER=glassfish
echo "Ensuring Unix user '$GLASSFISH_USER' exists"
useradd $GLASSFISH_USER || :
GLASSFISH_ZIP='/dataverse/downloads/glassfish-4.0.zip'
if [ ! -f $GLASSFISH_ZIP ]; then
echo "Couldn't find $GLASSFISH_ZIP! Please run the script in the \"downloads\" directory followed by \"vagrant destroy\". Then try \"vagrant up\" again." >&2
exit 1
DOWNLOAD_DIR='/dataverse/downloads'
GLASSFISH_ZIP="$DOWNLOAD_DIR/glassfish-4.0.zip"
SOLR_TGZ="$DOWNLOAD_DIR/solr-4.6.0.tgz"
if [ ! -f $GLASSFISH_ZIP ] || [ ! -f $SOLR_TGZ ]; then
echo "Couldn't find $GLASSFISH_ZIP or $SOLR_TGZ! Running download script...."
cd $DOWNLOAD_DIR && ./download.sh && cd
echo "Done running download script."
fi
GLASSFISH_USER_HOME=~glassfish
GLASSFISH_ROOT=$GLASSFISH_USER_HOME/glassfish4
Expand Down

0 comments on commit afa11da

Please sign in to comment.