Add support for custom branches in soup

This commit is contained in:
Jason Ertel
2020-07-22 14:35:50 -04:00
parent cb46ca4832
commit 46e7d29f12
2 changed files with 6 additions and 3 deletions

View File

@@ -1 +1 @@
2.0.0-rc.1
2.0.1-rc.1

View File

@@ -43,8 +43,11 @@ clone_to_tmp() {
# Make a temp location for the files
mkdir -p /tmp/sogh
cd /tmp/sogh
#git clone -b dev https://github.com/Security-Onion-Solutions/securityonion.git
git clone https://github.com/Security-Onion-Solutions/securityonion.git
SOUP_BRANCH=""
if [ -n "$BRANCH" ]; then
SOUP_BRANCH="-b $BRANCH"
fi
git clone $SOUP_BRANCH https://github.com/Security-Onion-Solutions/securityonion.git
cd /tmp
if [ ! -f $UPDATE_DIR/VERSION ]; then
echo "Update was unable to pull from github. Please check your internet."