From cd2ebec69099514d5d36377cd779accda46eb1ec Mon Sep 17 00:00:00 2001 From: gberl002 Date: Thu, 16 Dec 2021 17:02:39 -0500 Subject: [PATCH] Updated router file names Fixed color formatting bug renamed launchd log files to use edge device name --- quickstart/docker/image/ziti-cli-functions.sh | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/quickstart/docker/image/ziti-cli-functions.sh b/quickstart/docker/image/ziti-cli-functions.sh index bf04fc376..6f29b0ef6 100755 --- a/quickstart/docker/image/ziti-cli-functions.sh +++ b/quickstart/docker/image/ziti-cli-functions.sh @@ -377,7 +377,7 @@ function ziti_expressConfiguration { setupZitiNetwork "${nw}" setupZitiHome - echo "ZITI HOME SET TO: $(BLUE "${ZITI_HOME}")" + echo -e "ZITI HOME SET TO: $(BLUE "${ZITI_HOME}")" if ! getLatestZiti "no"; then echo -e "$(RED "getLatestZiti failed")" @@ -1111,7 +1111,7 @@ function createControllerConfig { cat "${ZITI_PKI_OS_SPECIFIC}/${ZITI_CONTROLLER_INTERMEDIATE_NAME}/certs/${ZITI_CONTROLLER_HOSTNAME}-server.chain.pem" > "${ZITI_PKI_OS_SPECIFIC}/cas.pem" cat "${ZITI_PKI_OS_SPECIFIC}/${ZITI_SIGNING_INTERMEDIATE_NAME}/certs/${ZITI_SIGNING_INTERMEDIATE_NAME}.cert" >> "${ZITI_PKI_OS_SPECIFIC}/cas.pem" -echo "wrote CA file to: $(BLUE "${ZITI_PKI_OS_SPECIFIC}/cas.pem")" +echo -e "wrote CA file to: $(BLUE "${ZITI_PKI_OS_SPECIFIC}/cas.pem")" output_file="${ZITI_HOME}/${controller_name}.yaml" cat > "${output_file}" < "${output_file}" < "${output_file}" < StandardOutPath - ${ZITI_HOME}/Logs/ziti-router-$ZITI_BINARIES_VERSION.log + ${ZITI_HOME}/Logs/${controller_name}-{ZITI_BINARIES_VERSION}.log StandardErrorPath - ${ZITI_HOME}/Logs/ziti-router-$ZITI_BINARIES_VERSION.log + ${ZITI_HOME}/Logs/${controller_name}-{ZITI_BINARIES_VERSION}.log HeredocForLaunchd @@ -1568,7 +1568,7 @@ function createRouterLaunchdFile { if [[ "${router_name}" == "" ]]; then # Check for overwrite of default file router_name="${default_router_name}" - getFileOverwritePermission "${ZITI_HOME-}/ziti-router-${router_name}.plist" + getFileOverwritePermission "${ZITI_HOME-}/${router_name}.plist" retVal=$? if [[ "${retVal}" != 0 ]]; then return 1 @@ -1583,14 +1583,14 @@ function createRouterLaunchdFile { return 1 fi -output_file="${ZITI_HOME-}/ziti-router-${router_name}.plist" +output_file="${ZITI_HOME-}/${router_name}.plist" cat > "${output_file}" < Label - ziti-router-$router_name + $router_name ProgramArguments $ZITI_BIN_DIR/ziti-router @@ -1609,9 +1609,9 @@ cat > "${output_file}" < StandardOutPath - ${ZITI_HOME}/Logs/ziti-router-$ZITI_BINARIES_VERSION.log + ${ZITI_HOME}/Logs/${router_name}-${ZITI_BINARIES_VERSION}.log StandardErrorPath - ${ZITI_HOME}/Logs/ziti-router-$ZITI_BINARIES_VERSION.log + ${ZITI_HOME}/Logs/${router_name}-${ZITI_BINARIES_VERSION}.log HeredocForLaunchd