Fix sysctl command to run with sudo
This commit is contained in:
parent
2593e697c6
commit
a8f04df76e
@ -243,7 +243,7 @@ configure_swap() {
|
|||||||
sudo sed -i 's/^vm.swappiness.*/vm.swappiness = 10/' /etc/sysctl.conf
|
sudo sed -i 's/^vm.swappiness.*/vm.swappiness = 10/' /etc/sysctl.conf
|
||||||
fi
|
fi
|
||||||
# Make the configuration take effect
|
# Make the configuration take effect
|
||||||
sysctl -p
|
sudo sysctl -p
|
||||||
}
|
}
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user