deploy-initial: fix obtaining swap size

This commit is contained in:
Daniel Micay 2024-10-22 06:53:52 -04:00
parent fed4e23007
commit 3c8a2b7ac2

View File

@ -10,7 +10,7 @@ readonly host=$1
readonly ip=${hosts_ipv4_address[$host]}
readonly hostname=${hosts_hostname[$host]}
readonly agcount=${hosts_agcount[$host]:-4}
readonly swap=${hosts_agcount[$host]:-2048}
readonly swap=${hosts_swap[$host]:-2048}
readonly remote=root@$ip
readonly drive=$(ssh $remote '[[ -e /dev/sda ]] && echo sda || echo vda')