Skip to content

Commit

Permalink
Add check to installation script when we copy files from tarball (#50368
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vapopov authored Dec 18, 2024
1 parent 1a7466f commit 0b1e410
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/web/scripts/node-join/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,9 @@ install_from_file() {
tar -xzf "${TEMP_DIR}/${DOWNLOAD_FILENAME}" -C "${TEMP_DIR}"
# install binaries to /usr/local/bin
for BINARY in ${TELEPORT_BINARY_LIST}; do
${COPY_COMMAND} "${TELEPORT_ARCHIVE_PATH}/${BINARY}" "${TELEPORT_BINARY_DIR}/"
if [ -e "${TELEPORT_ARCHIVE_PATH}/${BINARY}" ]; then
${COPY_COMMAND} "${TELEPORT_ARCHIVE_PATH}/${BINARY}" "${TELEPORT_BINARY_DIR}/"
fi
done
elif [[ ${TELEPORT_FORMAT} == "deb" ]]; then
# convert teleport arch to deb arch
Expand Down

0 comments on commit 0b1e410

Please sign in to comment.