Added swap settings

This commit is contained in:
Jason Hee committed 2016-11-29 00:06:11 +08:00
1 parent 02e48fe201
commit a82bf4ff21
3 files changed
+38

No files matched your search

+8
View File
@@ -12,6 +12,13 @@ function includeDependencies() {
source "${current_dir}/setupLibrary.sh"
}
function setupSwap() {
createSwap
mountSwap
tweakSwapSettings "10" "50"
saveSwapSettings
}
current_dir=$(getCurrentDir)
includeDependencies
@@ -32,5 +39,6 @@ read -rp $'Paste in the public SSH key for the new user:\n' sshKey
addSSHKey "${username}" "${sshKey}"
changeSSHConfig
setupUfw
setupSwap
sudo service ssh restart