call detect_os function

This commit is contained in:
m0duspwnens
2020-07-30 16:25:45 -04:00
parent 914d890a51
commit f209deac98

View File

@@ -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 ""