On Wed, 2003-02-12 at 13:26, Allan M. Stewart wrote:
>
> What is the best way to update many servers at customer sites?
All you need is an ssh key on the client system to log in as root.
#! /bin/sh
# Use:
# ./update-em
# - Runs apt-get upgrade to do a full update of the system
# ./update-em [package1 [package2]...]
# - Runs apt-get install to install or update a specific set of
# packages
HOSTS="host1.site1.com host1.site2.com"
for HOST in $HOSTS; do
if [ -z "$1" ] ; then
ssh root@$HOST apt-get update '&&' apt-get upgrade
else
ssh root@$HOST apt-get update '&&' apt-get install "$@"
fi
done
--
Psyche-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/psyche-list