deploypkg.zsh: Boot machines before attempting to deploy
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
2adddd9e9c
commit
2ecfbe3770
|
@ -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]} &
|
||||
|
|
Loading…
Reference in New Issue