[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-security] here is my Auto-Security-Patch-Updater
- Subject: [cobalt-security] here is my Auto-Security-Patch-Updater
- From: "Gunther Stammwitz" <gstammw@xxxxxxx>
- Date: Sat, 13 Apr 2002 22:07:01 +0200
- List-id: Mailing list for users to address network security on Cobalt products. <cobalt-security.list.cobalt.com>
Hi Guys,
these two scripts will mirror the cobalt-ftp-patches-directory and then
they'll install all patches sorted by the date. the oldest goes first.
It's not that efficient since all patches will be installed - or at lest it
will try to install them - even though most of them are already installed.
anyway... it is a dirty hack BUT it works.
1.
Make the download-directory:
mkdir /COBALT-UPDATES
then run this script:
#Auto-Download by GS
#gs@xxxxxxxxxx
#v0.1 alpha :-)
#dirty hack
#
# you should use mirror.. it works much much better.
# DOWNLOAD everything in /COBALT-UPDATES
cd /COBALT-UPDATES
wget ftp://ftp.cobalt.sun.com/pub/packages/raq3/eng/*
# done
#Auto-Updater by GS
#gs@xxxxxxxxxx
#v0.1 alpha :-)
#dirty hack
#
# list all files in /COBALT-UPDATES sorted by the date of the file.
# first goes the oldest...
cd /COBALT-UPDATES
for FILE in $(cd /COBALT-UPDATES; ls -t -r -1);
do
echo "EXECUTING: cobalt_upgrade $PKGFILE..."
/usr/local/sbin/cobalt_upgrade $FILE
done
Thanks and bye,
Gunther