updateEnv.sh
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/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
export SPASE_REPO="http://apus.irap.omp.eu:8080/amda-registry/resolver"
#Remote SPASE Registry to get Person' Info
export SPASE_REMOTE="http://www.spase-group.org/smwg/resolver"
# for SPASE Registy MAJ
export SPASE_HOST=apus.irap.omp.eu
export SPASE_ROOT="/usr/share/tomcat/webapps/amda-registry/metadata"