mirror of https://github.com/infosecn1nja/HELK.git
Update helk_install.sh to read from available memory instead of free
parent
ec4e491060
commit
667a4c4434
|
@ -25,9 +25,15 @@ systemKernel="$(uname -s)"
|
|||
check_min_requirements(){
|
||||
echo "[HELK-INSTALLATION-INFO] HELK being hosted on a $systemKernel box"
|
||||
if [ "$systemKernel" == "Linux" ]; then
|
||||
<<<<<<< HEAD
|
||||
AVAILABLE_MEMORY=$(free -hm | awk 'NR==2{printf "%.f\t\t", $4 }')
|
||||
ES_MEMORY=$(free -hm | awk 'NR==2{printf "%.f", $4/2 }')
|
||||
AVAILABLE_DISK=$(df -m | awk '$NF=="/"{printf "%.f\t\t", $4 / 1024}')
|
||||
=======
|
||||
AVAILABLE_MEMORY=$(free -hm | awk 'NR==2{printf "%.f\t\t", $7 }')
|
||||
ES_MEMORY=$(free -hm | awk 'NR==2{printf "%.f", $7/2 }')
|
||||
AVAILABLE_DISK=$(df -h | awk '$NF=="/"{printf "%.f\t\t", $4}')
|
||||
>>>>>>> e7e455e... Modify helk_install.sh to read available memory rather than free memory
|
||||
|
||||
if [ "${AVAILABLE_MEMORY}" -ge "12" ] && [ "${AVAILABLE_DISK}" -ge "30" ]; then
|
||||
echo "[HELK-INSTALLATION-INFO] Available Memory: $AVAILABLE_MEMORY"
|
||||
|
|
Loading…
Reference in New Issue