From bfce1703029ce6f42c81beb576cb2893f2a42ae8 Mon Sep 17 00:00:00 2001 From: Will Gunter Date: Mon, 4 Mar 2024 14:46:00 -0500 Subject: [PATCH] Update sed commands in ci.sh to work with MacOS & Linux Distros (Ubuntu) --- ci/ci.sh | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/ci/ci.sh b/ci/ci.sh index 7a54d7aa..297156a1 100755 --- a/ci/ci.sh +++ b/ci/ci.sh @@ -36,26 +36,26 @@ function worker_conf_data() { INSTALL_TYPE=${1} if [[ "${INSTALL_TYPE}" == "worker1" ]]; then - sed -i 's/__WORKER_TYPE__/run_all/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_WEB_PORT__/37080/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_SSL_PORT__/37443/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_AJP_PORT__/37009/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_SHUTDOWN_PORT__/37005/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_JMX_PORT__/31098/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__WORKER_TYPE__/run_all/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_WEB_PORT__/37080/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_SSL_PORT__/37443/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_AJP_PORT__/37009/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_SHUTDOWN_PORT__/37005/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_JMX_PORT__/31098/' ${ROOT}/ci_worker.conf elif [[ "${INSTALL_TYPE}" == "worker2" ]]; then - sed -i 's/__WORKER_TYPE__/run_models_only/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_WEB_PORT__/36080/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_SSL_PORT__/36443/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_AJP_PORT__/36009/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_SHUTDOWN_PORT__/36005/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_JMX_PORT__/31097/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__WORKER_TYPE__/run_models_only/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_WEB_PORT__/36080/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_SSL_PORT__/36443/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_AJP_PORT__/36009/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_SHUTDOWN_PORT__/36005/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_JMX_PORT__/31097/' ${ROOT}/ci_worker.conf elif [[ "${INSTALL_TYPE}" == "worker3" ]]; then - sed -i 's/__WORKER_TYPE__/run_external_tasks_only/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_WEB_PORT__/33080/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_SSL_PORT__/33443/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_AJP_PORT__/33009/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_SHUTDOWN_PORT__/33005/' ${ROOT}/ci_worker.conf - sed -i 's/__CWS_JMX_PORT__/31096/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__WORKER_TYPE__/run_external_tasks_only/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_WEB_PORT__/33080/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_SSL_PORT__/33443/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_AJP_PORT__/33009/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_SHUTDOWN_PORT__/33005/' ${ROOT}/ci_worker.conf + sed -i '' -e 's/__CWS_JMX_PORT__/31096/' ${ROOT}/ci_worker.conf else print "ERROR: UNEXPECTED INSTALL TYPE VALUE: '${INSTALL_TYPE}'" exit 1;