#!/bin/bash if [ -z "$UPDATEDIR" ]; then echo "[ERROR] UPDATEDIR not defined" fi export AMDA_IHM=$(readlink -f "$UPDATEDIR/..") . $UPDATEDIR/../scripts/loadEnv.sh if [ -z ${NEWMETA} ] then echo "[ERROR] check if NEWMETA env variable is defined" exit 1 fi if [ -z ${AMDA_SPASE_INTERFACE} ] then echo "[ERROR] check if AMDA_SPASE_INTERFACE env variable is defined" exit 1 fi if [ -z ${AMDAINTERNALDIR} ] then echo "[ERROR] check if AMDAINTERNALDIR env variable is defined" exit 1 fi if [[ ${AMDA_SPASE_INTERFACE: -1} != "/" ]]; then export AMDA_SPASE_INTERFACE=$AMDA_SPASE_INTERFACE/ fi if [[ ${NEWMETA: -1} != "/" ]]; then export NEWMETA=$NEWMETA/ fi if [[ ${AMDAINTERNALDIR: -1} != "/" ]]; then export AMDAINTERNALDIR=$AMDAINTERNALDIR/ fi #SPASE Registry definitions - To skip if SPASE_REPO already defined in environment variables if [ -z ${SPASE_REPO+x} ]; then export SPASE_REPO="http://amda-registry.irap.omp.eu/amda-registry/resolver" fi #Remote SPASE Registry to get Person' Info export SPASE_REMOTE="http://www.spase-group.org/smwg/resolver" # for SPASE Registy MAJ export SPASE_HOST=amda-registry.irap.omp.eu export SPASE_ROOT="/usr/share/tomcat/webapps/amda-registry/metadata"