Make output a little nicer

This commit is contained in:
Joshua Boniface 2019-12-14 16:56:33 -05:00
parent 292c2d9a44
commit 8202d7e64b
1 changed files with 6 additions and 0 deletions

View File

@ -22,10 +22,16 @@ $SUDO ./build-deb.sh
$SUDO dpkg -i ../pvc-client*.deb $SUDO dpkg -i ../pvc-client*.deb
for HOST in ${HOSTS[@]}; do for HOST in ${HOSTS[@]}; do
echo "****"
echo "Deploying to host ${HOST}"
echo "****"
ssh $HOST mkdir /tmp/pvc ssh $HOST mkdir /tmp/pvc
scp ../*.deb $HOST:/tmp/pvc/ scp ../*.deb $HOST:/tmp/pvc/
ssh $HOST $SUDO dpkg -i /tmp/pvc/*.deb ssh $HOST $SUDO dpkg -i /tmp/pvc/*.deb
ssh $HOST $SUDO systemctl restart pvcd ssh $HOST $SUDO systemctl restart pvcd
ssh $HOST rm -rf /tmp/pvc ssh $HOST rm -rf /tmp/pvc
echo "****"
echo "Waiting 30s for host ${HOST} to stabilize"
echo "****"
sleep 30 sleep 30
done done