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

Re: [cobalt-users] Re: Command Line package install



On Sat, 14 Feb 2004, Peter Nixon wrote:
> Is the following script going to work ok for applying updates without breaking
> anything on the Cubes?
>
> #!/bin/bash
> echo Bulk package installer for Cobalt products
> echo Licence: GNU Public Licence Version 2
> for pkg in *.pkg; do
>     echo Installing $pkg
>     /usr/sausalito/sbin/pkg_prepare.pl -i -R -f $pkg
> wait
> done

We use this on RaQ550s, (csh script) which is very similar

# log the installation of pkgs
set log=/root/update.log

echo "Running updates" > $log
foreach file (*.pkg)
  echo "installing $file" >> $log
  echo "installing $file"
    /usr/sausalito/sbin/pkg_prepare.pl -i -R -f  $file >> $log
end
echo "Rebooting"
shutdown -r now

Gerald
--
http://frontstreetnetworks.com | http://raqware.com
  Front Street Networks LLC, 229 Front Street, Ste.#C
  New Haven, CT 06513-3203 | phone: +1-203-785-0699