From 76e3089b5d86d6b2f3b2d08cbbc6e16c2dc91374 Mon Sep 17 00:00:00 2001 From: Tsvetomir Hristov Date: Fri, 11 Oct 2024 13:28:33 +0200 Subject: [PATCH] Improving the prompt --- ct/elasticsearch.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ct/elasticsearch.sh b/ct/elasticsearch.sh index 0de6d3f4..391c9225 100644 --- a/ct/elasticsearch.sh +++ b/ct/elasticsearch.sh @@ -77,12 +77,13 @@ function update_script() { } function ask_extend_mmap() { - read -r -p "Elasticsearch recommends extending the vm.max_map_count \n(https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html)? " prompt + echo "Elasticsearch recommends extending the vm.max_map_count \n(https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html)?" + read -r -p "Would you like to extend mmap count? " prompt if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then - msg_info "Extending mmap" + msg_info "Extending mmap count" sysctl -w vm.max_map_count=262144 echo "vm.max_map_count=262144" >> /etc/sysctl.conf - msg_ok "Extended mmap" + msg_ok "Extended mmap count" fi }