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