mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
swapiness and cashe pressure config
This commit is contained in:
@@ -976,7 +976,7 @@ configure_swap() {
|
|||||||
rm -f /swapfile || true
|
rm -f /swapfile || true
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! grep -q '^607swapfile ' /etc/fstab; then
|
if ! grep -q '^/swapfile ' /etc/fstab; then
|
||||||
echo '/swapfile none swap sw 0 0' >> /etc/fstab
|
echo '/swapfile none swap sw 0 0' >> /etc/fstab
|
||||||
fi
|
fi
|
||||||
print_success "Swap file created: $SWAP_SIZE"
|
print_success "Swap file created: $SWAP_SIZE"
|
||||||
|
|||||||
Reference in New Issue
Block a user