Commit 7a89edec authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

Script de test d'install complète : basex + max + tei_demo

parent 1e64937f
#!/bin/bash
TARGET=max-install-test
DIRECTORY=/tmp/$TARGET
BASEX_URL=https://files.basex.org/releases/9.5/BaseX95.zip
cd /tmp
#remove existing test dir if exists
if [ -d $TARGET ]
then
echo 'delete existing test directory'
rm -rf $TARGET
fi
#create test tmp dir
mkdir $TARGET
cd $TARGET
git clone git@git.unicaen.fr:pdn-certic/MaX.git
#curl basex 9.5
basex_zip=`basename $BASEX_URL`
curl --silent -O $BASEX_URL
unzip $basex_zip
rm -rf $basex_zip
MAX_DIR=$DIRECTORY/MaX
echo 'Create symlink in basex webapp to MaX dir'
ln -s $MAX_DIR basex/webapp/
echo 'Export BASEX_PATH to '$DIRECTORY/basex
export BASEX_PATH=$DIRECTORY/basex
echo 'Initialize MaX'
./MaX/tools/max.sh -i
echo 'Run basexhttp'
./basex/bin/basexhttpstop -h4242
./basex/bin/basexhttp -h4242 &
echo 'Install Max Tei DEMO'
./MaX/tools/max.sh --d-tei
firefox http://localhost:4242/max_tei_demo
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment