mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
revert branch to original code
This commit is contained in:
@@ -20,7 +20,6 @@ UPDATE_DIR=/tmp/sogh/securityonion
|
|||||||
INSTALLEDVERSION=$(cat /etc/soversion)
|
INSTALLEDVERSION=$(cat /etc/soversion)
|
||||||
INSTALLEDSALTVERSION=$(salt --versions-report | grep Salt: | awk {'print $2'})
|
INSTALLEDSALTVERSION=$(salt --versions-report | grep Salt: | awk {'print $2'})
|
||||||
default_salt_dir=/opt/so/saltstack/default
|
default_salt_dir=/opt/so/saltstack/default
|
||||||
SOUP_BRANCH=$1
|
|
||||||
BATCHSIZE=5
|
BATCHSIZE=5
|
||||||
|
|
||||||
manager_check() {
|
manager_check() {
|
||||||
@@ -46,11 +45,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
|
||||||
if [ -n "$SOUP_BRANCH" ]; then
|
SOUP_BRANCH=""
|
||||||
git clone -b $SOUP_BRANCH https://github.com/Security-Onion-Solutions/securityonion.git
|
if [ -n "$BRANCH" ]; then
|
||||||
else
|
SOUP_BRANCH="-b $BRANCH"
|
||||||
git clone https://github.com/Security-Onion-Solutions/securityonion.git
|
|
||||||
fi
|
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