From aec81ae4eee668c98beab36e6ec129986dde6ac0 Mon Sep 17 00:00:00 2001 From: Renaud Hoyoux Date: Thu, 14 Sep 2017 10:42:13 +0200 Subject: [PATCH] fix add local iipJpeg2000 --- ims/deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ims/deploy.sh b/ims/deploy.sh index 5fc769468..9d6d9a83d 100644 --- a/ims/deploy.sh +++ b/ims/deploy.sh @@ -24,6 +24,9 @@ if [ $IS_LOCAL = true ]; then echo "$(route -n | awk '/UG[ \t]/{print $2}') $CORE_URL" >> /etc/hosts echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_OFF_URL" >> /etc/hosts echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_CYTO_URL" >> /etc/hosts + if [ ! -z "$IIP_JP2_URL" ]; then + echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_JP2_URL" >> /etc/hosts + fi for x in $arr do echo "$(route -n | awk '/UG[ \t]/{print $2}') $x" >> /etc/hosts @@ -59,7 +62,6 @@ echo "cytomine.hdf5.scriptToFindFiles=webapps/ROOT/WEB-INF/scripts/relatedFiles. if [ ! -z "$IIP_JP2_URL" ]; then - echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_JP2_URL" >> /etc/hosts echo "cytomine.iipImageServerJpeg2000=http://$IIP_JP2_URL/fcgi-bin/iipsrv.fcgi" >> imageserverconfig.properties echo "cytomine.Jpeg2000Enabled=true" >> imageserverconfig.properties fi