mirror of
https://github.com/darksaid98/ubuntu-server-setup.git
synced 2026-12-02 06:28:59 +00:00
Added swap settings
This commit is contained in:
1 parent
02e48fe201
commit
a82bf4ff21
3 files changed
+38
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user