mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
allow soup to continue update if branch is specified
This commit is contained in:
@@ -152,13 +152,8 @@ update_version() {
|
|||||||
|
|
||||||
upgrade_check() {
|
upgrade_check() {
|
||||||
# Let's make sure we actually need to update.
|
# Let's make sure we actually need to update.
|
||||||
if [ -n "$SOUP_BRANCH" ]; then
|
|
||||||
NEWVERSION="$SOUP_BRANCH"
|
|
||||||
else
|
|
||||||
NEWVERSION=$(cat $UPDATE_DIR/VERSION)
|
NEWVERSION=$(cat $UPDATE_DIR/VERSION)
|
||||||
fi
|
if [ "$INSTALLEDVERSION" == "$NEWVERSION" ] && [ -z "$SOUP_BRANCH" ]; then
|
||||||
|
|
||||||
if [ "$INSTALLEDVERSION" == "$NEWVERSION" ]; then
|
|
||||||
echo "You are already running the latest version of Security Onion."
|
echo "You are already running the latest version of Security Onion."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -209,6 +204,7 @@ echo ""
|
|||||||
echo "Verifying we have the latest script"
|
echo "Verifying we have the latest script"
|
||||||
verify_latest_update_script
|
verify_latest_update_script
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "Let's see if we need to update"
|
echo "Let's see if we need to update"
|
||||||
upgrade_check
|
upgrade_check
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user