mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
call detect_os function
This commit is contained in:
@@ -70,7 +70,7 @@ copy_new_files() {
|
||||
|
||||
detect_os() {
|
||||
# Detect Base OS
|
||||
echo "Detecting Base OS" >> "$SOUP_LOG" 2>&1
|
||||
echo "Determining Base OS." >> "$SOUP_LOG" 2>&1
|
||||
if [ -f /etc/redhat-release ]; then
|
||||
OS="centos"
|
||||
elif [ -f /etc/os-release ]; then
|
||||
@@ -240,7 +240,10 @@ while getopts ":b" opt; do
|
||||
done
|
||||
|
||||
echo "Checking to see if this is a manager."
|
||||
echo ""
|
||||
manager_check
|
||||
detect_os
|
||||
echo ""
|
||||
echo "Cloning Security Onion github repo into $UPDATE_DIR."
|
||||
clone_to_tmp
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user