Skip to content

Commit

Permalink
abort installation if needed download failed
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Dec 13, 2023
1 parent 6a3c179 commit 5bdfc9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions installation/routines/setup_jukebox_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ _jukebox_core_build_libzmq_with_drafts() {
local cpu_count=${CPU_COUNT:-$(python3 -c "import os; print(os.cpu_count())")}

cd "${JUKEBOX_ZMQ_TMP_DIR}" || exit_on_error
wget --quiet https://github.com/zeromq/libzmq/releases/download/v${JUKEBOX_ZMQ_VERSION}/${zmq_tar_filename}
wget --quiet https://github.com/zeromq/libzmq/releases/download/v${JUKEBOX_ZMQ_VERSION}/${zmq_tar_filename} || exit_on_error "Download failed"
tar -xzf ${zmq_tar_filename}
rm -f ${zmq_tar_filename}
cd ${zmq_filename} || exit_on_error
Expand All @@ -68,7 +68,7 @@ _jukebox_core_download_prebuilt_libzmq_with_drafts() {
ARCH=$(get_architecture)

cd "${JUKEBOX_ZMQ_TMP_DIR}" || exit_on_error
wget --quiet https://github.com/pabera/libzmq/releases/download/v${JUKEBOX_ZMQ_VERSION}/libzmq5-${ARCH}-${JUKEBOX_ZMQ_VERSION}.tar.gz -O ${zmq_tar_filename}
wget --quiet https://github.com/pabera/libzmq/releases/download/v${JUKEBOX_ZMQ_VERSION}/libzmq5-${ARCH}-${JUKEBOX_ZMQ_VERSION}.tar.gz -O ${zmq_tar_filename} || exit_on_error "Download failed"
tar -xzf ${zmq_tar_filename}
rm -f ${zmq_tar_filename}
sudo rsync -a ./* ${JUKEBOX_ZMQ_PREFIX}/
Expand Down
2 changes: 1 addition & 1 deletion installation/routines/setup_jukebox_webapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ _jukebox_webapp_download() {

cd "${INSTALLATION_PATH}/src/webapp" || exit_on_error
# URL must be set to default repo as installation can be run from different repos as well where releases may not exist
wget --quiet ${DOWNLOAD_URL} -O ${TAR_FILENAME}
wget --quiet ${DOWNLOAD_URL} -O ${TAR_FILENAME} || exit_on_error "Download failed"
tar -xzf ${TAR_FILENAME}
rm -f ${TAR_FILENAME}
cd "${INSTALLATION_PATH}" || exit_on_error
Expand Down

0 comments on commit 5bdfc9d

Please sign in to comment.