Blame view

update_amda/updateEnv.sh 1.11 KB
4c77b9b1   Elena.Budnik   final update
1
2
#!/bin/bash

ba35574d   Benjamin Renard   Uniformize proxy ...
3
if [ -z "$UPDATEDIR" ]; then
2d0ca0ba   Benjamin Renard   Load environment ...
4
5
6
	echo "[ERROR] UPDATEDIR not defined"
fi

99ae8744   Benjamin Renard   Use config variab...
7
8
export AMDA_IHM=$(readlink -f "$UPDATEDIR/..")

2d0ca0ba   Benjamin Renard   Load environment ...
9
10
. $UPDATEDIR/../scripts/loadEnv.sh

99ae8744   Benjamin Renard   Use config variab...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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

2d0ca0ba   Benjamin Renard   Load environment ...
29
if [[ ${AMDA_SPASE_INTERFACE: -1} != "/" ]]; then
ea60a0bc   Elena.Budnik   trailing slash fo...
30
	export AMDA_SPASE_INTERFACE=$AMDA_SPASE_INTERFACE/
2d0ca0ba   Benjamin Renard   Load environment ...
31
32
33
fi

if [[ ${NEWMETA: -1} != "/" ]]; then
ea60a0bc   Elena.Budnik   trailing slash fo...
34
	export NEWMETA=$NEWMETA/
2d0ca0ba   Benjamin Renard   Load environment ...
35
36
37
fi

if [[ ${AMDAINTERNALDIR: -1} != "/" ]]; then
ea60a0bc   Elena.Budnik   trailing slash fo...
38
	export AMDAINTERNALDIR=$AMDAINTERNALDIR/
2d0ca0ba   Benjamin Renard   Load environment ...
39
fi
4c77b9b1   Elena.Budnik   final update
40

2d0ca0ba   Benjamin Renard   Load environment ...
41
#SPASE Registry definitions
9b36ce29   Benjamin Renard   clean up
42
export SPASE_REPO="http://amda-registry.irap.omp.eu/resolver"
2d0ca0ba   Benjamin Renard   Load environment ...
43
44
45
#Remote SPASE Registry to get Person' Info
export SPASE_REMOTE="http://www.spase-group.org/smwg/resolver"
# for SPASE Registy MAJ
9b36ce29   Benjamin Renard   clean up
46
export SPASE_HOST=amda-registry.irap.omp.eu
2d0ca0ba   Benjamin Renard   Load environment ...
47
export SPASE_ROOT="/usr/share/tomcat/webapps/amda-registry/metadata"