swapiness and cashe pressure config

This commit is contained in:
Ali
2025-06-27 13:02:18 +01:00
parent 1b7eeaec02
commit e11d87e00c

View File

@@ -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"