mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Don't set is_cloud in a subshell
This commit is contained in:
@@ -361,10 +361,11 @@ percentage=0
|
||||
echo "Could not install packages required for setup, exiting now." >> "$setup_log" 2>&1
|
||||
kill -SIGUSR1 "$setup_proc"; exit 1
|
||||
fi
|
||||
set_progress_str 99 "Detecting whether setup is running in the cloud." nolog
|
||||
detect_cloud
|
||||
} | progress '...'
|
||||
|
||||
echo "Checking if setup is running in the cloud..."
|
||||
detect_cloud
|
||||
|
||||
short_name=$(echo "$HOSTNAME" | awk -F. '{print $1}')
|
||||
|
||||
MINION_ID=$(echo "${short_name}_${install_type}" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
Reference in New Issue
Block a user