Fix sysctl command to run with sudo

This commit is contained in:
Konano 2023-11-29 21:19:12 +08:00
parent 2593e697c6
commit a8f04df76e

View File

@ -243,7 +243,7 @@ configure_swap() {
sudo sed -i 's/^vm.swappiness.*/vm.swappiness = 10/' /etc/sysctl.conf
fi
# Make the configuration take effect
sysctl -p
sudo sysctl -p
}
# ============================================================