From 41971320aaa2faddc7aee387ec1372ad550df01d Mon Sep 17 00:00:00 2001 From: myve Date: Fri, 19 Jul 2024 23:29:54 +0000 Subject: [PATCH] Update novnc/Dockerfile --- novnc/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/novnc/Dockerfile b/novnc/Dockerfile index ecd061f..55f804d 100644 --- a/novnc/Dockerfile +++ b/novnc/Dockerfile @@ -8,29 +8,29 @@ RUN apk add --no-cache \ && <<-'01-init' cat >>/app/init.d/01-init.sh # Check for client variables -if ! [ ${MYVNC_VNCCLIENT_HOST} ] +if ! [ ${MYVNC_VNCSSH_HOST} ] then - echo "Variable MYVNC_VNCCLIENT_HOST is missing." + echo "Variable MYVNC_VNCSSH_HOST is missing." echo "Exiting..." exit 1 fi -if ! [ ${MYVNC_VNCCLIENT_PORT} ] +if ! [ ${MYVNC_VNCSSH_PORT} ] then - echo "Variable MYVNC_VNCCLIENT_PORT is missing." + echo "Variable MYVNC_VNCSSH_PORT is missing." echo "Exiting..." exit 1 fi -if ! [[ ${MYVNC_VNCCLIENT_PORT} =~ ^[0-9]+$ ]] +if ! [[ ${MYVNC_VNCSSH_PORT} =~ ^[0-9]+$ ]] then - echo "Variable MYVNC_VNCCLIENT_PORT is invalid." + echo "Variable MYVNC_VNCSSH_PORT is invalid." echo "Exiting..." exit 1 fi # Read ssh client variables hostname and port (5900, 5901, 5902, etc) -if ssh ${MYVNC_VNCCLIENT_HOST} exit +if ssh ${MYVNC_VNCSSH_HOST} exit then - ssh ${MYVNC_VNCCLIENT_HOST} -L ${MYVNC_VNCLISTEN_HOST:-5900}:localhost:${MYVNC_VNCCLIENT_PORT} & + ssh ${MYVNC_VNCSSH_HOST} -L ${MYVNC_VNCLISTEN_HOST:-5900}:localhost:${MYVNC_VNCSSH_PORT} & else echo "Unable to establish SSH tunnel." echo "Exiting..."