]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Modify vnc.sh
authorspo <sergey.pokhodenko@opencascade.com>
Thu, 20 Aug 2015 13:09:58 +0000 (16:09 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Thu, 20 Aug 2015 13:09:58 +0000 (16:09 +0300)
vnc.sh

diff --git a/vnc.sh b/vnc.sh
index 57102df99804e9203d214bbe4d946fd71718171f..fafc049effcbc38f5655270d0a88423be3f81967 100755 (executable)
--- a/vnc.sh
+++ b/vnc.sh
@@ -1,4 +1,10 @@
 #!/bin/bash -e
 
+if [ -z ${DISPLAY_PORT} ]; then
+  export DISPLAY_PORT=99
+fi
+
+echo "DISPLAY is :${DISPLAY_PORT}"
+
 export PATH=/dn23/NEWGEOM/NEWGEOM_JENKINS_BUILD_AREA/tools:/opt/TurboVNC/bin:${PATH}
-./vnc-run vglrun "$@"
+./vnc-run --server-num ${DISPLAY_PORT} vglrun "$@"