From 06ce9eca75ae481b3bb4b93eabe07765bd41c7eb Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:41:56 +0100 Subject: [PATCH] changes for docker tests --- installation/install-jukebox.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/installation/install-jukebox.sh b/installation/install-jukebox.sh index fdc217615..e65930e32 100755 --- a/installation/install-jukebox.sh +++ b/installation/install-jukebox.sh @@ -80,8 +80,13 @@ download_jukebox_source() { checkPrerequisite ### RUN INSTALLATION +cd "${HOME_PATH}" INSTALLATION_LOGFILE="${HOME_PATH}/INSTALL-${INSTALL_ID}.log" -exec 3>&1 1>>"${INSTALLATION_LOGFILE}" 2>&1 || { echo "Cannot create log file. Panic."; exit 1; } +if [ "$DOCKER_RUNNING" == "true" ]; then + exec 3>&1 2>&1 +else + exec 3>&1 1>>"${INSTALLATION_LOGFILE}" 2>&1 || { echo "Cannot create log file. Panic."; exit 1; } +fi echo "Log start: ${INSTALL_ID}" clear 1>&3