Skip to content

Commit

Permalink
Add --no-live-setup flag in installer script to avoid installing debe…
Browse files Browse the repository at this point in the history
…zium when only offline setup is required
  • Loading branch information
sanyamsinghal committed Dec 20, 2024
1 parent d392530 commit b3fec23
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion installer_scripts/install-yb-voyager
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOG_FILE=/tmp/install-yb-voyager.log
VERSION="latest"

ONLY_PG="false"
NO_LIVE_SETUP="false"

trap on_exit EXIT

Expand Down Expand Up @@ -323,14 +324,18 @@ check_java() {
}

install_debezium_server(){
if [ $NO_LIVE_SETUP == "false" ] ; then
return
fi

if [ "${VERSION}" != "local" ]
then
output "Installing debezium:${DEBEZIUM_VERSION}"
install_debezium_server_from_release
return
fi
output "Installing debezium:${VERSION}."

output "Installing debezium:${VERSION}."
check_install_maven
clean_debezium
install_debezium_local ${DEBEZIUM_LOCAL_REF}
Expand Down Expand Up @@ -555,6 +560,10 @@ get_passed_options() {
ONLY_PG="true";
shift
;;
--no-live )
NO_LIVE_SETUP="true"
shift
;;
-v | --rebuild-voyager-local )
REBUILD_VOYAGER_LOCAL="true";
shift
Expand Down

0 comments on commit b3fec23

Please sign in to comment.