Skip to content

Commit aec81ae

Browse files
committed
fix add local iipJpeg2000
1 parent b50ad35 commit aec81ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ims/deploy.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ if [ $IS_LOCAL = true ]; then
2424
echo "$(route -n | awk '/UG[ \t]/{print $2}') $CORE_URL" >> /etc/hosts
2525
echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_OFF_URL" >> /etc/hosts
2626
echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_CYTO_URL" >> /etc/hosts
27+
if [ ! -z "$IIP_JP2_URL" ]; then
28+
echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_JP2_URL" >> /etc/hosts
29+
fi
2730
for x in $arr
2831
do
2932
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.
5962

6063

6164
if [ ! -z "$IIP_JP2_URL" ]; then
62-
echo "$(route -n | awk '/UG[ \t]/{print $2}') $IIP_JP2_URL" >> /etc/hosts
6365
echo "cytomine.iipImageServerJpeg2000=http://$IIP_JP2_URL/fcgi-bin/iipsrv.fcgi" >> imageserverconfig.properties
6466
echo "cytomine.Jpeg2000Enabled=true" >> imageserverconfig.properties
6567
fi

0 commit comments

Comments
 (0)