- previous sysctl for vm.max_map_count was not persistent

- custom sysctl file for future tuning/settings
- typo correction
keyword-vs-text-changes
neutron 2018-12-06 01:08:54 -05:00
parent 7b51b81d7d
commit fbe105ead7
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,7 @@ prepare_helk(){
if [ -x "$(command -v docker)" ] && [ -x "$(command -v docker-compose)" ]; then if [ -x "$(command -v docker)" ] && [ -x "$(command -v docker-compose)" ]; then
echo "[HELK-INSTALLATION-INFO] Docker & Docker-compose already installed" echo "[HELK-INSTALLATION-INFO] Docker & Docker-compose already installed"
else else
echo "[HELK-INSTALLATION-INFO] Please innstall Docker & Docker-compose for $systemKernel" echo "[HELK-INSTALLATION-INFO] Please install Docker & Docker-compose for $systemKernel"
exit 1 exit 1
fi fi
fi fi
@ -260,6 +260,7 @@ prepare_helk(){
if [ $ERROR -ne 0 ]; then if [ $ERROR -ne 0 ]; then
echoerror "Could not set vm.max_map_count to 262144 (Error Code: $ERROR)." echoerror "Could not set vm.max_map_count to 262144 (Error Code: $ERROR)."
fi fi
echo "vm.max_map_count = $MAX_MAP_COUNT" > /etc/sysctl.d/90-helk-overwritten-during-docker-install-sysctl-tuning.conf;
fi fi
echo "[HELK-INSTALLATION-INFO] Setting KAFKA ADVERTISED_LISTENER value..." echo "[HELK-INSTALLATION-INFO] Setting KAFKA ADVERTISED_LISTENER value..."
# ****** Setting KAFKA ADVERTISED_LISTENER environment variable *********** # ****** Setting KAFKA ADVERTISED_LISTENER environment variable ***********