From f5c8afcf0b63083ddd0afcdb013e13eb5a873780 Mon Sep 17 00:00:00 2001 From: BytesGalore <3903215+BytesGalore@users.noreply.github.com> Date: Tue, 12 Oct 2021 22:50:13 +0200 Subject: [PATCH] feat(APPS/installer): configure remote and pull branch in conf/config.sh (#8364) Co-authored-by: BytesGalore <3903215+BytesGalore@users.noreply.github.com> --- apps/installer/includes/functions.sh | 2 +- conf/dist/config.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/installer/includes/functions.sh b/apps/installer/includes/functions.sh index cd4d746e5..d7f172538 100644 --- a/apps/installer/includes/functions.sh +++ b/apps/installer/includes/functions.sh @@ -47,7 +47,7 @@ function inst_configureOS() { function inst_updateRepo() { cd "$AC_PATH_ROOT" - git pull origin $(git rev-parse --abbrev-ref HEAD) + git pull "$ORIGIN_REMOTE" "$INSTALLER_PULL_FROM" } function inst_resetRepo() { diff --git a/conf/dist/config.sh b/conf/dist/config.sh index 05cbaaa32..f78428cbf 100644 --- a/conf/dist/config.sh +++ b/conf/dist/config.sh @@ -29,6 +29,16 @@ BINPATH="$AC_PATH_ROOT/env/dist" # DATAPATH="$BINPATH/bin" # DATAPATH_ZIP="$DATAPATH/data.zip" +# azerothcore's official remote source address to pull from +# by default git will fetch form the azrothcore remote +# You can change it to "origin" if you want to fetch/pull from the set remote +ORIGIN_REMOTE="https://github.com/azerothcore/azerothcore-wotlk.git" + +# Branch configuration for the installer to pull from. +# By default git will select the current working branch +# You can change it to "master" if you want the latest updates +INSTALLER_PULL_FROM=$(git rev-parse --abbrev-ref HEAD) + ############################################## # # COMPILER_CONFIGURATIONS