[fix] Create arrays for bro_pins and suricata_pins

This commit is contained in:
William Wernert
2020-04-22 16:59:31 -04:00
parent 02cd1a7623
commit 09c22bbe43
2 changed files with 16 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ export total_mem
num_cpu_cores=$(nproc)
export num_cpu_cores
readarray -t cpu_core_list <<< "$(grep "processor" /proc/cpuinfo | grep -v "KVM" | awk '{print $3 ""}')"
readarray -t cpu_core_list <<< "$(grep "processor" /proc/cpuinfo | grep -v "KVM" | awk '{print $3}')"
export cpu_core_list
random_uid=$(</dev/urandom tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)