From 870091faaa55a0f94a3465991ccbf402638cb394 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 23 Jan 2021 22:13:28 -0500 Subject: [PATCH] Fix messages --- lug-helper.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 9ecde05..8f7f062 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -531,10 +531,10 @@ mapcount_once() { mapcount_set() { if [ -d "/etc/sysctl.d" ]; then pkexec sh -c 'echo "vm.max_map_count = 16777216" >> /etc/sysctl.d/20-max_map_count.conf && sysctl --system' - message info "The necessary configuration has been appended to:\n/etc/sysctl.d/20-max_map_count.conf" + message info "The vm.max_map_count configuration has been appended to:\n/etc/sysctl.d/20-max_map_count.conf" else pkexec sh -c 'echo "vm.max_map_count = 16777216" >> /etc/sysctl.conf && sysctl -p' - message info "The necessary configuration has been appended to:\n/etc/sysctl.conf" + message info "The vm.max_map_count configuration has been appended to:\n/etc/sysctl.conf" fi mapcount_confirm } @@ -585,12 +585,12 @@ filelimit_set() { # Using systemd # Append to the file pkexec sh -c 'echo "DefaultLimitNOFILE=524288" >> /etc/systemd/system.conf && systemctl daemon-reexec' - message info "Your open files limit configuration has been appended to:\n/etc/systemd/system.conf" + message info "The open files limit configuration has been appended to:\n/etc/systemd/system.conf" elif [ -f "/etc/security/limits.conf" ]; then # Using limits.conf # Insert before the last line in the file pkexec sh -c 'sed -i "\$i* hard nofile 524288" /etc/security/limits.conf' - message info "Your open files limit configuration has been appended to:\n/etc/security/limits.conf" + message info "The open files limit configuration has been appended to:\n/etc/security/limits.conf" else # Don't know what method to use message warning "This Helper is unable to detect the correct method of setting\nthe open file descriptors limit on your system.\n\nWe recommend manually configuring this limit to at least 524288."