From 8e854a817158c0f1d90a3285c1c372ce22c0f0f6 Mon Sep 17 00:00:00 2001 From: spo Date: Thu, 20 Aug 2015 16:09:58 +0300 Subject: [PATCH] Modify vnc.sh --- vnc.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vnc.sh b/vnc.sh index 57102df99..fafc049ef 100755 --- 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 "$@" -- 2.39.2