Re: Pushing updates ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux