add logging to couple functions. do git checkout only if branch is not master to prevent unnecessary errorlog entry
This commit is contained in:
@@ -186,7 +186,7 @@ function InstallXOPlugins {
|
||||
echo "No plugins to install"
|
||||
fi
|
||||
|
||||
}
|
||||
} 2>$LOGFILE
|
||||
|
||||
function InstallXO {
|
||||
|
||||
@@ -220,9 +220,13 @@ function InstallXO {
|
||||
echo "Fetching source code from branch: $BRANCH ..."
|
||||
echo
|
||||
git clone https://github.com/vatesfr/xen-orchestra $INSTALLDIR/xo-builds/xen-orchestra-$TIME
|
||||
|
||||
if [[ "$BRANCH" != "master" ]]; then
|
||||
cd $INSTALLDIR/xo-builds/xen-orchestra-$TIME
|
||||
git checkout $BRANCH
|
||||
cd $(dirname $0)
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "done"
|
||||
|
||||
@@ -413,7 +417,7 @@ function RollBackInstallation {
|
||||
esac
|
||||
done
|
||||
|
||||
}
|
||||
} 2>$LOGFILE
|
||||
|
||||
function CheckOS {
|
||||
|
||||
|
Reference in New Issue
Block a user