Add support for custom Xen Orchestra repository

This commit is contained in:
Andrzej Ressel
2020-06-05 02:27:01 +02:00
parent 50885cac39
commit 615e32c3bc
2 changed files with 6 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ PRESERVE=${PRESERVE:-"3"}
XOUSER=${XOUSER:-"root"}
CONFIGPATH="$(getent passwd $XOUSER | cut -d: -f6)"
PLUGINS="${PLUGINS:-"none"}"
REPOSITORY="${REPOSITORY:-"https://github.com/vatesfr/xen-orchestra"}"
# set variables not changeable in configfile
TIME=$(date +%Y%d%m%H%M)
@@ -416,8 +417,8 @@ function InstallXO {
if [[ ! -d "$XO_SRC_DIR" ]]; then
cmdlog "mkdir -p \"$XO_SRC_DIR\""
mkdir -p "$XO_SRC_DIR"
cmdlog "git clone https://github.com/vatesfr/xen-orchestra \"$XO_SRC_DIR\""
git clone https://github.com/vatesfr/xen-orchestra "$XO_SRC_DIR" >>$LOGFILE 2>&1
cmdlog "git clone \"${REPOSITORY}\" \"$XO_SRC_DIR\""
git clone "${REPOSITORY}" "$XO_SRC_DIR" >>$LOGFILE 2>&1
else
cmdlog "cd \"$XO_SRC_DIR\""
cd "$XO_SRC_DIR" >>$LOGFILE 2>&1