From e11d87e00c73a52c7cbc4b5e74117d5d1976a3f6 Mon Sep 17 00:00:00 2001 From: Ali Date: Fri, 27 Jun 2025 13:02:18 +0100 Subject: [PATCH] swapiness and cashe pressure config --- setup_harden_debian_ubuntu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_harden_debian_ubuntu.sh b/setup_harden_debian_ubuntu.sh index 8f23e9f..737996f 100644 --- a/setup_harden_debian_ubuntu.sh +++ b/setup_harden_debian_ubuntu.sh @@ -976,7 +976,7 @@ configure_swap() { rm -f /swapfile || true exit 1 fi - if ! grep -q '^607swapfile ' /etc/fstab; then + if ! grep -q '^/swapfile ' /etc/fstab; then echo '/swapfile none swap sw 0 0' >> /etc/fstab fi print_success "Swap file created: $SWAP_SIZE"