From 0cf195d17bae072d4b1769a01501c54c68282fdf Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Fri, 20 Jul 2018 23:45:43 +0800 Subject: [PATCH 1/2] Added Support For Specifying A Tag To Install --- xo-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index 1aea564..625c516 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -17,7 +17,7 @@ PORT="80" # Base dir for installation and future updates INSTALLDIR="/etc/xo" -# Git branch where xen-orchestra sources are fetched +# Git branch or tag where xen-orchestra sources are fetched BRANCH="master" # Log path for possible errors @@ -195,7 +195,10 @@ function InstallXO { echo echo "Fetching source code from branch: $BRANCH ..." echo - git clone -b $BRANCH https://github.com/vatesfr/xen-orchestra $INSTALLDIR/xo-builds/xen-orchestra-$TIME + git clone https://github.com/vatesfr/xen-orchestra $INSTALLDIR/xo-builds/xen-orchestra-$TIME + cd $INSTALLDIR/xo-builds/xen-orchestra-$TIME + git checkout $BRANCH + cd $(dirname $0) echo echo "done" From b7560d2c71b0c1a302c073700fccb33ee6a6aa07 Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Fri, 20 Jul 2018 12:31:36 -0400 Subject: [PATCH 2/2] Make The Set Tag/Branch Message More Clear --- xo-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo-install.sh b/xo-install.sh index 625c516..7050930 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -17,7 +17,7 @@ PORT="80" # Base dir for installation and future updates INSTALLDIR="/etc/xo" -# Git branch or tag where xen-orchestra sources are fetched +# Git branch or tag (append tags/ before the tag name) where xen-orchestra sources are fetched BRANCH="master" # Log path for possible errors