deploypkg.zsh: Boot machines before attempting to deploy

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Anna Schumaker 2021-12-06 11:04:52 -05:00
parent 2adddd9e9c
commit 2ecfbe3770
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/bin/zsh
colors="/home/anna/bin/colors"
colors="$HOME/bin/colors"
if [ "$#" -lt 2 ]; then
echo "Usage: $0 /path/to/package {remote host, ...}"
@ -15,6 +15,7 @@ function deploy_package() {
ssh $1 "sudo pacman --noconfirm -U pkg/$pkg" | python $colors/pacman.py $2
}
$HOME/bin/vm.zsh boot $*
tags=($(python $colors/vm.py $*))
for ((i=1; i<=$#; i++)); do
deploy_package ${@[i]} ${tags[i]} &