From 6fd399ef5437ea3f210f073ecb0f9c999a9b5958 Mon Sep 17 00:00:00 2001 From: Timothy Gerstel Date: Tue, 30 Jun 2020 03:57:37 -0400 Subject: [PATCH 1/2] Do not attempt to start ZSS outside of z/OS Signed-off-by: Timothy Gerstel --- bin/start.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/start.sh b/bin/start.sh index 30de190b7..cd8e0054e 100644 --- a/bin/start.sh +++ b/bin/start.sh @@ -21,5 +21,10 @@ # - ZOWE_ZLUX_TELNET_PORT # - ZOWE_ZLUX_SECURITY_TYPE -cd ${ROOT_DIR}/components/zss/bin -./zssServer.sh +OSNAME=$(uname -I) +if [[ "${OSNAME}" == "z/OS" ]]; then + cd ${ROOT_DIR}/components/zss/bin + ./zssServer.sh +else + echo "Zowe ZSS server is unsupported on ${OSNAME}. Supported systems: z/OS" +fi \ No newline at end of file From a10d3684ca074e56b71d9a83aa6f3f710679acad Mon Sep 17 00:00:00 2001 From: Timothy Gerstel Date: Tue, 30 Jun 2020 04:02:02 -0400 Subject: [PATCH 2/2] Change uname flag to determine OS Signed-off-by: Timothy Gerstel --- bin/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/start.sh b/bin/start.sh index cd8e0054e..81d5944f9 100644 --- a/bin/start.sh +++ b/bin/start.sh @@ -21,10 +21,10 @@ # - ZOWE_ZLUX_TELNET_PORT # - ZOWE_ZLUX_SECURITY_TYPE -OSNAME=$(uname -I) -if [[ "${OSNAME}" == "z/OS" ]]; then +OSNAME=$(uname) +if [[ "${OSNAME}" == "OS/390" ]]; then cd ${ROOT_DIR}/components/zss/bin ./zssServer.sh else - echo "Zowe ZSS server is unsupported on ${OSNAME}. Supported systems: z/OS" + echo "Zowe ZSS server is unsupported on ${OSNAME}. Supported systems: OS/390" fi \ No newline at end of file