Commit 58672725 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add pkgeverywhere.sh

parent 719fdccc
#!/bin/bash
#exec &>./pkgeverywhere.log
HOSTS="devel windsor cellar priv host03 fund clients de01 azbyka azbykar telros"
PACKAGE="openssh-server openssl"
#PACKAGE="openssl"
for i in $HOSTS
do
VZLIST=$(ssh $i ' vzlist|tr -s " "|cut -f2 -d" "|grep -v CTID ')
for j in $VZLIST
do
echo
echo $i '-' $j ':'
echo
# epm Install $PACKAGE
ssh $i vzctl exec $j apt-get update
ssh $i vzctl exec $j apt-get install --no-remove -y "$PACKAGE"
done
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment