mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Add support for custom branches in soup
This commit is contained in:
@@ -43,8 +43,11 @@ clone_to_tmp() {
|
|||||||
# Make a temp location for the files
|
# Make a temp location for the files
|
||||||
mkdir -p /tmp/sogh
|
mkdir -p /tmp/sogh
|
||||||
cd /tmp/sogh
|
cd /tmp/sogh
|
||||||
#git clone -b dev https://github.com/Security-Onion-Solutions/securityonion.git
|
SOUP_BRANCH=""
|
||||||
git clone https://github.com/Security-Onion-Solutions/securityonion.git
|
if [ -n "$BRANCH" ]; then
|
||||||
|
SOUP_BRANCH="-b $BRANCH"
|
||||||
|
fi
|
||||||
|
git clone $SOUP_BRANCH https://github.com/Security-Onion-Solutions/securityonion.git
|
||||||
cd /tmp
|
cd /tmp
|
||||||
if [ ! -f $UPDATE_DIR/VERSION ]; then
|
if [ ! -f $UPDATE_DIR/VERSION ]; then
|
||||||
echo "Update was unable to pull from github. Please check your internet."
|
echo "Update was unable to pull from github. Please check your internet."
|
||||||
|
|||||||
Reference in New Issue
Block a user